# /etc/samba/smb.conf # written by spirit, based on the sample file that comes with Debian GNU/linux #======================= Global Settings ======================= [global] workgroup = spirit server string = %h samba server dns proxy = no ; wins support = no ; wins server = w.x.y.z ; name resolve order = lmhosts host wins bcast #### Debugging/Accounting #### log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d ####### Authentication ####### security = user encrypt passwords = true passdb backend = tdbsam guest obey pam restrictions = yes invalid users = root unix password sync = no ########## Printing ########## ; load printers = yes ; printing = bsd ; printcap name = /etc/printcap ; printing = cups ; printcap name = cups ; printer admin = root ######## File sharing ######## ; preserve case = yes ; short preserve case = yes ############ Misc ############ socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ; domain master = auto ; idmap uid = 10000-20000 ; idmap gid = 10000-20000 ; template shell = /bin/bash #======================= Share Definitions ======================= [read] comment = linux smb share - read only path = /share/read browsable = yes read only = yes [write] comment = linux smb share - write access path = /share/write browseable = yes read only = yes write list = spirit [cdrom] comment = Samba server's CD-ROM writable = no locking = no path = /media/cdrom public = yes