Samba

From test.coolscript.org
Jump to navigation Jump to search

smb.conf sample:

[global]
   interfaces = eth0 lo
   bind interfaces only = yes
   workgroup = wkgroup
   server string = %h server
   obey pam restrictions = Yes
   pam password change = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   unix password sync = Yes
   syslog = 0
   log level = 2
   log file = /var/log/samba/log.%m
   max log size = 1000
   dns proxy = No
   panic action = /usr/share/samba/panic-action %d
   valid users = matthias
   admin users = matthias
   smb ports = 139 445
   #hosts allow = 127.0.0.1 192.168.2.0/24 192.168.3.0/24
   #Unitymedia part 1 ...
   #now configured via firewall 21Nov2012
   #hosts allow = 95.223.0.0/16 87.155.0.0/16 212.19.51.160/27 95.222.0.0/16
   #hosts deny = 0.0.0.0/0


[home$]
   comment = home
   path = /home/
   write list = matthias,mk
   valid users = matthias,mk
   admin users = matthias,mk
[doc]
   comment = usr
   path = /usr/share/doc/
   write list = matthias,mk
   valid users = matthias,mk
   admin users = matthias,mk