[NTLUG:Discuss] Sharing a Printer from Linux to Windows

linux linux at thunderboltsolutions.com
Tue Jan 20 12:20:29 CST 2004


Dear List,

I'm fairly new to linux, and I've spent a good 15+ hours on network
issues with my new linux box.  I have 3 computers on my network, 2 XP
and 1 redhat 9.  I finally got them all to allow each other to login,
and set a server share on the linux box.  My current problem is getting
the windose boxes to print via the printer on the linux box.

The printer is:
HP Deskjet 895Cse on the printer port, and it prints fine from linux.

I've tried every setting I could think of with samba (as well as webmin,
and every google FAQ i could find)

Both windows computers can see the printer but when I click on it, it
says access denied.(I'm assuming that is because in smb.conf, browseable
is set to no, but printable is set to yes)

When I go to System Settings > Printing I see my printer (printy) and
when I right click on it and select sharing, "This queue is aviable to
all other computers is checked, and All Hosts is in the box below.

I currently have my firewall turned off on linux.  I've tried to use
etheral to see that a print packet is being sent but I'm somewhat lost
as to what port things are being sent on and how to filter out to see
things on that port.


Here is my /etc/samba/smb.conf file 
# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/01/17 20:37:23

# Global parameters
[global]
	log file = /var/log/samba/%m.log
	passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
	obey pam restrictions = Yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	printer name = printy
	guest ok = yes
	encrypt passwords = yes
	passwd program = /usr/bin/passwd %u
	dns proxy = No
	netbios name = LEDURASE
	server string = lenny
	printing = cups
	path = /shares
	unix password sync = Yes
	workgroup = ourhome
	os level = 20
	comment = public share
	security = share
	max log size = 0
	pam password change = Yes
	printcap name = /etc/printcap
	load printers = yes
	smb passwd file = /etc/samba/smbpasswd

[shares]
	comment = public share
	path = /shares
	writeable = yes
	guest ok = yes

[printers]
	comment =# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2004/01/17 20:37:23

# Global parameters
[global]
	log file = /var/log/samba/%m.log
	passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
	obey pam restrictions = Yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	printer name = printy
	guest ok = yes
	encrypt passwords = yes
	passwd program = /usr/bin/passwd %u
	dns proxy = No
	netbios name = LEDURASE
	server string = lenny
	printing = cups
	path = /shares
	unix password sync = Yes
	workgroup = ourhome
	os level = 20
	comment = public share
	security = share
	max log size = 0
	pam password change = Yes
	printcap name = /etc/printcap
	load printers = yes
	smb passwd file = /etc/samba/smbpasswd

[shares]
	comment = public share
	path = /shares
	writeable = yes
	guest ok = yes

[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
	printable = yes






More information about the Discuss mailing list