# Global parameters # # this file: /etc/samba/smb.conf (SERVER CONFIG) # by F.Hagethorn # [global] coding system = ISO-8859-1 client code page = 437 code page directory = /usr/share/samba/codepages workgroup = WORKGROUP netbios name = SERVER server string = Welcome to the Nebulae (running: %v) bind interfaces only = No security = USER encrypt passwords = Yes update encrypted = Yes allow trusted domains = Yes min passwd length = 5 map to guest = Never null passwords = No obey pam restrictions = No smb passwd file = /etc/samba/smbpasswd root directory = / pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No password level = 0 username level = 0 unix password sync = Yes restrict anonymous = No lanman auth = Yes use rhosts = No log level = 1 syslog = 1 syslog only = No max log size = 5000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 large readwrite = No max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes announce version = 4.5 announce as = NT max mux = 50 max xmit = 65535 name resolve order = lmhosts host wins bcast max packet = 65535 max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No unix extensions = No change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 10000 read size = 16384 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 stat cache size = 50 use mmap = Yes total print jobs = 0 load printers = Yes printcap name = /etc/printcap disable spoolss = No show add printer wizard = Yes strip dot = No mangled stack = 50 stat cache = Yes machine password timeout = 604800 add user script = /usr/sbin/useradd -g machines -c Machine -d /dev/null -s /bin/false %m$ ; /usr/bin/smbpasswd -a -m %m delete user script = /usr/sbin/userdel %m$ ; /usr/bin/smbpasswd -x %m logon script = %U.bat logon path = \\%N\profile logon drive = X: logon home = \\%N\profile domain logons = Yes os level = 255 lm announce = Auto lm interval = 60 preferred master = True local master = Yes domain master = True browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins support = Yes kernel oplocks = Yes oplock break wait time = 0 lock dir = /var/run/samba utmp = No socket address = 0.0.0.0 time offset = 0 NIS homedir = No hide local users = No host msdfs = No template homedir = /home/%D/%U template shell = /bin/false winbind separator = winbind cache time = 15 winbind cache time = 15 winbind enum users = Yes winbind enum groups = Yes guest account = nobody admin users = root read only = Yes create mask = 0755 force create mode = 00 security mask = -1 force security mode = -1 directory mask = 0755 force directory mode = 00 directory security mask = -1 force directory security mode = -1 inherit permissions = No guest only = No guest ok = No only user = No status = Yes nt acl support = Yes max connections = 0 min print space = 0 strict allocate = No strict sync = No sync always = No write cache size = 0 max print jobs = 1000 printable = No postscript = No printing = bsd print command = lp -d%p %s lpq command = lpq -d%p lprm command = lprm -d%p %j use client driver = No default devmode = No printer driver file = /etc/samba/printers.def default case = lower case sensitive = No preserve case = Yes short preserve case = Yes mangle case = No mangling char = ~ hide dot files = Yes hide unreadable = No delete veto files = No map system = No map hidden = No map archive = Yes mangled names = Yes browseable = Yes blocking locks = No fake oplocks = Yes locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = No share modes = Yes preexec close = No root preexec close = No available = Yes fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes delete readonly = No dos filemode = No dos filetimes = No dos filetime resolution = No fake directory create times = No msdfs root = No [Printers] comment = All Printers path = /tmp create mask = 0700 printable = Yes browseable = No [Netlogon] path = /etc/samba/netlogon locking = No public = No browseable = No root preexec = /etc/samba/scripts/logon.sh %N %u root postexec = /etc/samba/scripts/logout.sh %N %u [Profile] comment = %u's roaming profile path = /home/profiles/%u locking = No public = No read only = No browseable = No root preexec = /etc/samba/scripts/profilecheck.sh %N %u [Homes] comment = %u's homedirectory read only = No create mask = 0600 browseable = No [Cdrom] comment = CDROM drive on %N path = /cdrom root preexec = /etc/samba/scripts/mountcd root postexec = /etc/samba/scripts/umountcd ## Use the next two as template for your own shares #[usershare1] # comment = Stuph # path = /share1 # create mask = 0664 # directory mask = 3775 # writeable = yes # public = no #[usershare2] # comment = More stuph # path = /share2 # create mask = 0644 # directory mask = 3775 # writeable = yes # public = no ### ------------------------------------------------------------------------- ############################################################################# # Preliminary printer support entries, examples # # NOTES: # place your printers.def file in /etc/samba # # To find out more read: # http://www.jsanten.demon.nl/samba/automatedprinterdriver.htm # there are a few items missing on that page # like the printer queue, if you have multiple. # # (before you continue, comment the [Printers] entry above # # Continue at your own risk, this configuration is in the testing stage! # ############################################################################# ### Where win9x clients can get their driver files from #[printer$] # path = /etc/samba/printer # place the files that make_printerdef # # lists in here # public = No # we only want users that logged in to have acces # writable = No # nope, we only have access from the unix prompt # browseable = No # this share doesnt show up on the browselist ### The printer definition #[dj2000c] # comment = HP DeskJet 2000c # A nice comment # path = /tmp # where samba places temporary files for this share # printable = Yes # Yes, this is a printer # create mask = 0700 # only rwx for owner, rest dont need access # browseable = Yes # Yes, we can see it when browsing the shares on SERVER # public = No # No, we only want users that logged in to have acces # printer name = dj2000c # This is the lpr printer queue # printer driver = HP 2000C Printer # This is the windows printer driver name # printer driver location = \\%h\printer$ # and here are the driver files # note; %h will be replaced by # the netbios name of this # server by samba, no need to edit