# smb.conf (example) #======================= Global Settings ===================================== [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = ourgroup netbiosname = ourserver server string = Our Linux Samba Server time server = true printcap name = /etc/printcap load printers = yes printing = cups # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used ; guest account = pcguest log file = /var/log/samba/%m.log max log size = 0 security = user encrypt passwords = yes # if you have win95 or Macs with atalkd service, then need ; encrypt passwords = no # then you must disable password encryption from each win98 or win2000 # or win xp box (registry edit) smb passwd file = /etc/samba/smbpasswd unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* pam password change = yes obey pam restrictions = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ; local master = no ; os level = 33 os level = 65 domain master = yes preferred master = yes domain logons = yes logon script = %U.bat logon path = \\%L\Profiles\%U ; logon path = \\%L\home\Profiles\%U dns proxy = no #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775 ; map to guest = bad user [netlogon] comment = Network Logon Service path = /home/samba/netlogon ; guest ok = yes guest ok = no writable = no share modes = no write list=@techsupport [Profiles] path = /home/samba/profiles browseable = no guest ok = yes writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print guest ok = no writable = no printable = yes # This one is useful for people to share files ;[tmp] ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes # A publicly accessible directory, but read only, except for people in # the "staff" group [public] comment = Public Stuff path = /home/public browseable = yes public = yes writable = yes printable = no write list = @staff [staff] comment = Staff Stuff (private) path = /home/staff ; public = no writable = yes printable = no write list = @staff create mode = 0770 directory mode = 0770 # line to allow Windows 2000 machines to access samba (BSP) add user script = /usr/sbin/adduser -n-g machines -c Machine -d/dev/null -s/bin/false %m$