# # # Sample configuration file for the Samba suite for Debian GNU/Linux. # #======================= Global Settings =======================# [global] workgroup = 441 server string = %h Samba Server interfaces = eth1 bind interfaces only = Yes #### Debugging/Accounting #### log file = /var/log/samba/log.%m max log size = 1000 ;syslog only = no ;; syslog = 0 ;; panic action = /usr/share/samba/panic-action %d ####### Authentication ####### security = share encrypt passwords = true obey pam restrictions = yes ;guest account = nobody invalid users = root ;unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . pam password change = yes ; display charset = cp1251 display charset = utf-8 dos charset = 866 unix charset = utf-8 ;; unix charset = cp1251 ########## Printing ########## ;load printers = yes ;printing = bsd ;printcap name = /etc/printcap ;printing = cups ;printcap name = cups ;printer admin = @ntadmin ######## File sharing ######## # Name mangling options ;preserve case = yes ;short preserve case = yes ############ Misc ############ ;include = /home/samba/etc/smb.conf.%m socket options = TCP_NODELAY ;message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & ;domain master = auto ;idmap uid = 10000-20000 ;idmap gid = 10000-20000 ;template shell = /bin/bash #======================= Share Definitions =======================# wins support = no [homes] comment = Home Directories path = /home browseable = no writable = no create mask = 0700 directory mask = 0700 [Music] comment = x1™ Music browseable = yes locking = yes writable = no path = /var/nfs/Music public = yes guest ok = yes available = yes #[Cinema] # comment = All Video # browseable = yes # writable = no # locking = yes # path = /mnt/mdd/films # public = yes # guest ok = yes # available = yes [Pictures] comment = x1™ Pictures browseable = yes writable = no locking = yes path = /var/nfs/Picture public = yes guest ok = yes available = yes ;[Books] ; comment = x1™ Books ; browseable = no ; writable = no ; locking = yes ; path = /mnt/sda4/Books ; public = no ; guest ok = yes ; available = yes [Clips] comment = x1™ Clips browseable = yes writable = no locking = yes path = /var/nfs/Clips public = no guest ok = yes available = yes [Distribs] comment = x1™ Distribution's for all OS browseable = yes writable = no locking = yes path = /var/nfs/Distribs public = yes guest ok = yes [Distribwin] comment = x1™ Distribution's for Windows browseable = yes writable = no locking = yes path = /var/nfs/Distribwin public = yes guest ok = yes [Distribnix] comment = x1™ Distribution's for unix browseable = yes writable = no locking = yes path = /var/nfs/Distribnix public = yes guest ok = yes [Downloads] comment = x1™ For downloads files path = /var/nfs/Downloads available = yes browseable = yes public = yes writable = no guest ok = yes [Visual Help] comment = x1™ For helps files path = /var/nfs/Books available = yes browseable = yes public = yes writable = no #[Juss2] # path = /media/flash/Juss2 # comment = For helps files # available = yes # browseable = yes # public = yes # writable = no ;[SambaOther] ; comment = Samba ; browseable = yes ; writable = no ; locking = yes ; path = /home/admin/smb4k ; public = yes ; guest ok = yes [InfoLinux] comment = Wait browseable = yes writable = no locking = yes path = /mnt/mdd/books/Linux public = yes guest ok = yes [Incoming] comment = Exchange browseable = yes writable = yes locking = yes path = /var/nfs/Incoming public = yes guest ok = yes # veto files = /*Security*/*.tmp/*root*/*.exe/*.cmd*/*.bat/*.lnk/*.jpg/*.pif/*.db/ veto files = /*Security*/*.tmp/*root*/*.exe/*.cmd*/*.bat/*.lnk/*.pif/*.db/ #[Incoming2] # comment = Exchange # browseable = no # writable = no # locking = yes # path = /mnt/ndd/trash # public = yes # guest ok = yes #[Incoming3] # comment = Exchange # browseable = no # writable = yes # locking = yes # path = /mnt/edd/Trash/alandzr # public = yes # guest ok = yes #======================= ----------------- =======================# ### Other share ### ;[netlogon] ; comment = Network Logon Service ; path = /home/samba/netlogon ; guest ok = yes ; writable = no ; share modes = no #[printers] # comment = All Printers # browseable = no # path = /tmp # printable = yes # public = no # writable = no # create mode = 0700 #[print$] # comment = Printer Drivers # path = /var/lib/samba/printers # browseable = yes # read only = yes # guest ok = no # write list = root, @ntadmin ;[cdrom] ; comment = Samba server's CD-ROM ; writable = no ; locking = no ; path = /media/SOFT ; path = /media/Gurnal ; public = yes ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom