# this is a simple smb.conf that works with Debian or Mandrake running CUPS or lprng

[global]
   workgroup = SomeName
   server string = Samba Server %s
   interfaces = eth1

   hosts allow = 192.168.1. 127.

   printcap name = /etc/printcap
#  printcap name = lpstat
   load printers = yes
   printing = CUPS         # if using Common UNIX Printing System
#   printing = LPRNG        # if using lprng
   
   max log size = 50       # limit log to 50kB

   security = user
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd  # = /etc/smbpasswd in 2.2.x
   username map = /etc/samba/smbusers      # if you want to remap users 

   socket options = TCP_NODELAY IPTOS_THROUGHPUT SO_RCVBUF=16384 SO_SNDBUF=16384

   dns proxy = no
   dos filetimes = yes     # keep timestamp the same on file copies to Windows

   local master = yes      # allow Linux to be master browser
   preferred master = yes
   os level = 65           # always let Linux win against Windows

[homes]
   comment = Home Directory
   browseable = no
   writable = yes

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

[mnt]
   comment = mnt directory
   path = /mnt
   valid users = jack jill other
   public = no
   writable = yes
   printable = no
   create mask = 0777

# NOTE: If you have a BSD-style print system there is no need to 
# specifically define each individual printer
[printers]
   comment = All Printers
#   path = /var/spool/samba    # setup by Mandrake
   path = /tmp                # Debian is /var/spool/cups, but I could not get it to
                              #  print without it being world writeable
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

# Mandrake 8.x (2.4.x kernel) added the following 4 lines 
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drive
rs
;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostSc
ript on clients)
   lpq command = lpstat -o %p
   lprm command = cancel %p-%j
# Change the above to lpr with the same options for Debian
# Packages needed are cupsys, cupsys-client, and cupsys-bsd

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no
