# # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not many any basic syntactic # errors. # #======================= Global Settings ======================= [global] workgroup = NEWMARKET-VALE netbios name = mail-server server string = Vale-Tech Newmarket Server # time server = yes ; wins support = yes # For the moment keep the old MS server as a DNS & WINS server wins server = 192.168.0.152 dns proxy = yes ; name resolve order = lmhosts host wins bcast hosts allow = 127.0.0.1 192.168.0.0/24 62.3.64.25 hosts deny = 0.0.0.0/0 interfaces = eth0:0 lo bind interfaces only = yes ; domain logons = yes os level = 14 ; preferred master = yes local master = yes ; domain master = yes ; add user script = /usr/sbin/useradd -g machines -M %u ; logon drive = M: ; logon path = \\%L\profiles\%U ; logon script = netlogon.bat socket options = TCP_NODELAY SO_RCVBUF=14596 SO_SNDBUF=14596 SO_KEEPALIVE keep alive = 30 #### 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 = user security = domain encrypt passwords = true passdb backend = tdbsam guest obey pam restrictions = yes guest account = nobody invalid users = unix password sync = no ; passwd program = /usr/bin/passwd %u ; passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n . # If above uncommented change PAM to no ; pam password change = yes load printers = no ######## File sharing ######## # Name mangling options preserve case = yes short preserve case = yes case sensitive = no #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = no # User shares on the mail-server just hold the mail, so make read only # when connected directly writable = no # No one else can read a users emails create mask = 0700 directory mask = 0700 write list = @admins, richard, administrator [netlogon] comment = Network Logon Service path = /home/shares/samba/netlogon guest ok = yes writable = no share modes = no write list = @admins, richard, administrator [printers] comment = All Printers browseable = no path = /tmp printable = yes public = no writable = no create mode = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no # Uncomment to allow remote administration of Windows print drivers. # Replace 'ntadmin' with the name of the group your admin users are # members of. write list = root, @admins, richard, administrator [root] path = / browseable = no writable = yes valid users = @admins, richard, paul.brown, administrator [programs] comment = installed programs path = /home/shares/windows read only = yes write list = @admins, richard, administrator browseable = yes [cdrom] comment = Newmarket Server's DVD-ROM path = /cdrom read only = yes locking = no