josep29@casal.upc.edu
2005-May-12 16:48 UTC
[Samba] howto share printers and homes diferent way
I would like to configure my samba server to share: * printers to everybody (share security level) * homes to unix users only (user security level) What should I change in my configuration file? With the following configuration users need password to access his home directory but anyone also needs password to acces printers... Thanks! [global] log file = /var/log/samba/log.%m dns proxy = no passwd chat = *Enter\snew\sUNIX\spassword: \\*%n\n*Retype\snew\sUNIX\spassword:* %n\n server string = %h server (Samba %v) socket options = TCP_NODELAY invalid users = root obey pam restrictions = yes workgroup = t09 encrypt passwords = true syslog = 0 passwd program = /usr/bin/passwd %u passdb backend = tdbsam guest panic action = /usr/share/samba/panic-action %d max log size = 1000 printcap name = cups printing = cups security = user [printers] browseable = yes printable = yes public = yes create mode = 0700 guest only = yes use client driver = yes guest account = smbprint path = /var/spool/smbprint [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no [homes] comment = Dades Usuaris T09 writeable = yes