Advertisement
ScottHelme

EE BrightBox - Samba Conf

Jan 13th, 2014
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. root@BrightBox:/var/samba # cat smb.conf
  2. #
  3. # Samba configuration script
  4. #
  5.  
  6. #======================= Global Settings =======================
  7.  
  8. [global]
  9.  
  10. # workgroup/NT-domain name your Samba server is part of
  11. workgroup = WORKGROUP
  12.  
  13. # server string is the equivalent of the NT Description field
  14. netbios name = %h-samba
  15. server string = %h DSL Gateway
  16.  
  17. # This will prevent nmbd to search for NetBIOS names through DNS.
  18. dns proxy = no
  19.  
  20. # Local Master setings
  21. domain master = no
  22. local master = yes
  23. preferred master = yes
  24. os level = 35
  25.  
  26. # log files are not necessary,and can be ignored for now
  27. # debuglevel = 3
  28. log level = 3
  29. # log file = /var/samba/log/smbd.%m
  30. log file = /dev/null
  31. # max log size = 50
  32. syslog only = yes
  33. timestamp logs = no
  34. syslog = 1
  35.  
  36. # The specific set of interfaces / networks to bind to
  37. interfaces = br0
  38. bind interfaces only = yes
  39.  
  40. load printers = no
  41.  
  42. # security settings
  43. security = user
  44. encrypt passwords = yes
  45. smb passwd file = /var/samba/smbpasswd
  46. # obey pam restrictions = yes
  47. # browseable = yes
  48. map to guest = bad user
  49. guest ok = no
  50. guest only = no
  51. preserve case = yes
  52. short preserve case = yes
  53.  
  54. # Performance related settings
  55. socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
  56. # use sendfile = yes
  57.  
  58. # inactivity time out for client sessions
  59. deadtime = 5
  60.  
  61. # charset
  62. # display charset = UTF-8
  63. # dos charset = cp950
  64. # unix charset = UTF-8
  65.  
  66. #======================= Share Definitions =======================
  67. # USB Key folder
  68. [storage]
  69. comment = All Storage devices
  70. valid users = admin
  71. writable = no
  72. browseable = no
  73. path = /var/samba/share
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement