I have a Deskjet 690C connected to my machine running RH7.1 + linux 2.4.13 + samba 2.2.2 installed from RPM. I have setup the printer with RH's printconf-gui as a local printer. In local use it works fine. I have the following in my /etc/samba/smb.conf: --<snip>-- [global] security = share printcap name = /etc/printcap load printers = yes --</snip>-- and --<snip>-- [printers] path = /var/spool/lpd printable = yes guest ok = yes browseable = yes writeable = yes --</snip>-- Now, on a Win2kPro box I could do Settings -> Printers -> Add Printer and choose the Samba printer share "deskjet" and install a driver for it. I see the share "deskjet" as a share on my Samba box KARPALO. If I click "open" I get the Printer's window open, but it tells me: "deskjet on KARPALO Access denied, unable to connect" That is a bit confusing as I'm using share level security and the printers share is guest ok, browseable, printable and writeable? Now I wonder if the problem is not with win2k talking to samba but samba talking to lpd -- do I have to modify some permissions somewhere to let samba print to my printer? The printconf-gui did not have any security related options to be set and I do not know anything about how my linux box controls who is permitted to print something and who is not. Any help appreciated, Peter
I got a bit forward with my case: I added to my printers share these options: --<snip>-- printer admin = nobody guest account = nobody --</snip>-- and now I'm able to connect to the printer. But printing still doesn't work: --<snip>-- [2001/10/26 17:53:13, 0] printing/printing.c:print_job_start(926) print_job_start: insufficient permissions to open spool file /var/spool/lpd/smbprn.000007.BFRQPZ. --</snip>-- How do I give the user nobody permissions to use lpd? Or would it be a better idea to create a new "sambaprint" user and make her the printer admin and guest account? Or should I switch to USER level security? If I use USER level security, will users that have been setup with smbpasswd be able to print without any modifications from my Win2k box? Do I have to setup the printer again, making some user with an account made with smbpasswd the printer admin? Regards, Peter
On Fri, 26 Oct 2001, Peter Peltonen wrote:> --<snip>-- > [global] > security = share > printcap name = /etc/printcap > load printers = yes > --</snip>-- > > and > > --<snip>-- > [printers] > path = /var/spool/lpd > printable = yes > guest ok = yes > browseable = yes > writeable = yes > --</snip>-- > > Now, on a Win2kPro box I could do Settings -> Printers -> Add Printer and > choose the Samba printer share "deskjet" and install a driver for it. > > I see the share "deskjet" as a share on my Samba box KARPALO. If I click > "open" I get the Printer's window open, but it tells me: > > "deskjet on KARPALO Access denied, unable to connect"See the "user client driver" option in smb.conf. You might also want to switch to "security = user" cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--