fork download
  1. #======================= Global Settings =======================
  2.  
  3. [global]
  4.  
  5. ## Browsing/Identification ###
  6.  
  7. # Change this to the workgroup/NT-domain name your Samba server will part of
  8. workgroup = HOME
  9.  
  10. # server string is the equivalent of the NT Description field
  11. server string = %h server (Samba, Ubuntu)
  12.  
  13. # Windows Internet Name Serving Support Section:
  14. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  15. # wins support = no
  16.  
  17. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  18. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  19. ; wins server = w.x.y.z
  20.  
  21. # This will prevent nmbd to search for NetBIOS names through DNS.
  22. dns proxy = no
  23.  
  24.  
  25.  
  26. log file = /var/log/samba/log.%m
  27.  
  28. # Cap the size of the individual log files (in KiB).
  29. max log size = 1000
  30.  
  31. # If you want Samba to only log through syslog then set the following
  32. # parameter to 'yes'.
  33. # syslog only = no
  34.  
  35. # We want Samba to log a minimum amount of information to syslog. Everything
  36. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  37. # through syslog you should set the following parameter to something higher.
  38. syslog = 0
  39.  
  40. # Do something sensible when Samba crashes: mail the admin a backtrace
  41. panic action = /usr/share/samba/panic-action %d
  42.  
  43.  
  44. ####### Authentication #######
  45.  
  46. # "security = user" is always a good idea. This will require a Unix account
  47. # in this server for every user accessing the server. See
  48. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  49. # in the samba-doc package for details.
  50. security = user
  51. username map = /etc/samba/smbusers
  52. # You may wish to use password encryption. See the section on
  53. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  54. encrypt passwords = true
  55.  
  56. # If you are using encrypted passwords, Samba will need to know what
  57. # password database type you are using.
  58. passdb backend = tdbsam
  59.  
  60. obey pam restrictions = yes
  61.  
  62. # This boolean parameter controls whether Samba attempts to sync the Unix
  63. # password with the SMB password when the encrypted SMB password in the
  64. # passdb is changed.
  65. unix password sync = yes
  66.  
  67. # For Unix password sync to work on a Debian GNU/Linux system, the following
  68. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  69. # sending the correct chat script for the passwd program in Debian Sarge).
  70. passwd program = /usr/bin/passwd %u
  71. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  72.  
  73. # This boolean controls whether PAM will be used for password changes
  74. # when requested by an SMB client instead of the program listed in
  75. # 'passwd program'. The default is 'no'.
  76. pam password change = yes
  77.  
  78. # This option controls how unsuccessful authentication attempts are mapped
  79. # to anonymous connections
  80. map to guest = bad user
  81. usershare allow guests = no
  82.  
  83. [printers]
  84. comment = All Printers
  85. browseable = no
  86. path = /var/spool/samba
  87. printable = yes
  88. guest ok = no
  89. read only = yes
  90. create mask = 0700
  91.  
  92. # Windows clients look for this share name as a source of downloadable
  93. # printer drivers
  94. [print$]
  95. comment = Printer Drivers
  96. path = /var/lib/samba/printers
  97. browseable = yes
  98. read only = yes
  99. guest ok = no
  100.  
  101. [backup]
  102. comment = Old Mac HDD
  103. path = ~/media/backup
  104. browsable = yes
  105. guest ok = no
  106. read only = no
  107. create mask = 0755
  108.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty