Smb.conf

From LQWiki
Jump to navigation Jump to search

smb.conf is the configuration file for samba. A typical smb.conf might look like this:


 [global]
   workgroup = WORKGROUP
   server string = My Samba Server
   wins support = yes
    
 [homes]
   path = /home/%u/share
   valid users = %S
   browseable = no
   writable = yes
   create mask = 0660
   directory mask = 0770

 [printers]
   comment = Samba Printer
   browseable = no
   writable = yes
   path = /var/spool/samba

 [public]
   path = /public
   browseable = yes
   writable = yes

There are lots of configuration tools (like swat) that will ease construction of smb.conf