[NTLUG:Discuss] Sharing a Printer from Linux to Windows
Cameron, Thomas
Thomas.Cameron at bankofamerica.com
Tue Jan 20 18:16:38 CST 2004
> -----Original Message-----
> From: linux [mailto:linux at thunderboltsolutions.com]
> Sent: Tuesday, January 20, 2004 12:20 PM
> To: discuss at ntlug.org
> Subject: [NTLUG:Discuss] Sharing a Printer from Linux to Windows
>
>
> 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
>
Your smb.conf looks like it has duplicate sections. I would rename smb.conf to smb.conf.old, fire up swat and rebuild it from scratch. Try adding:
use client driver = yes
via swat (go to the advanced view) to make that error go away.
--
Thomas Cameron, RHCE, CNE, MCSE, MCT
Assistant Vice President
Linux Design and Engineering
Bank of America
(972) 997-9641
The opinions expressed in this message are mine alone and do not necessarily reflect the opinions of my employer, Bank of America.
More information about the Discuss
mailing list