[Samba] howto share printers to everybody and homes to unix users

josep29 at casal.upc.edu josep29 at casal.upc.edu
Tue May 17 12:32:21 GMT 2005


I need to share a printer to everybody and home directories to unix users only.
If I use share security the homes share doesn't work ok, and if I user user 
security only unix users can print (I want everybody to be able to print: unix 
user or not). What should I do?

Thanks

my smb.conf:
============

[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





More information about the samba mailing list