[Samba] printer server

Alexandre Carlos alexandre at redes.unb.br
Tue Apr 20 17:17:30 GMT 2004


I trying to share a printer using samba, but is not working. I already
share the files but the printer didn't workout. I'm using CUPS.

Can anyone help me solve this problem?

The configuration of smb.conf for printing is:

[global]
	workgroup = GRUPO
	netbios name = LINUX
	server string = Servidor Samba
	interfaces = eth0
	security = SHARE
	encrypt passwords = Yes
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
	unix password sync = Yes
	log file = /var/log/samba/%m.log
	max log size = 0
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	dns proxy = No
	printcap name = /etc/printcap
	printing = cups
	load printers = yes

[printers]
	comment = All Printers
	path = /var/spool/samba
	guest ok = Yes
	printable = Yes
	browseable = No
	guest ok = yes
	public = yes
	create mode = 0777
	security = server
	writable = no

[HP8100]
	path = /var/spool/samba
	valid users = %S
	create mask = 0700
	printable = Yes
	printing = cups
	print command = lpr -r -h -P %p %s
	printer name = HP LaserJet 8100
	browseable = No
	guest ok = yes
	security = server
	public = yes
	writable = yes
	load printers = yes
	hosts allow = 172.16.4.127

I would like to know if i would have to edit any another file, like
/etc/printcap or /etc/cups/cups.conf


More information about the samba mailing list