[Samba] Linux printer shows in Net Neighborhood, but "No Access"

Joel Hammer Joel at HammersHome.com
Fri Jul 5 19:41:02 GMT 2002

Can you print to the printer from your linux server?

If you can print from the server,  you can print from your windows clients.

I have success using path = /tmp

Who is your guest user?  I use "guest account = ftp" with good results.

Which printer queue are you trying to print to on your server? There
is usually a raw queue for just dumping jobs to the printer (test pages,
formatted output from windows) and a queue that handles postscript jobs,
generated from linux. I now send all my jobs to just one queue, the
postscript queue, as explained below.

Here is my smb.conf entry for a printer that can handle postscript jobs, ie,
that queue that handles all my routine printing from the samba/linux server.:

        path = /tmp
        read only = No
        create mask = 0700
        guest ok = yes
        hosts allow = 192.168.
        printable = Yes
        printing = lprng
        print command = echo %J %p %s  >>  /tmp/junkJ;\
                       a="`echo '%J' | sed "s/^.*- //"`" ;\
                       echo This is truncated $a >> /tmp/junkJ;\
                       /usr/bin/lpr -Pps  -J"$a"  %s;\
                       rm %s
        lpq command = /usr/bin/lpq -Pps
        lprm command = /usr/bin/lprm -Pps %j           

In my global I have:
guest account = ftp
I have found the easiest way to print from windows is to install a "generic"
postscript printer on all my windows clients. It comes with windows, a HP
laserjet III plus or some such. Send the windows print jobs to the same
queue you use for your linux print jobs.
Piece of cake.

On Fri, Jul 05, 2002 at 08:56:36PM -0500, Chris Olive wrote:
> Hello all,
> Been using Samba for a looooonnnng time, and with great success I might 
> add.  This is the first time in EVER that I've needed to ask ANYTHING 
> regarding it, so easy is it to config and admin.  Kudos to the Aussie that 
> wrote it.  Even if he initially thought it was Pathworks...  8-)
> ANYWAY... I've never really been able to use Samba as a print server.  For 
> some reason, when I add a printer to my Linux box (and having the standard 
> [Printers] section in my smb.conf file), I SEE the printer in my Network 
> Neighborhood, and I can even install the printer on my Windows 2K machine, 
> but when I try to access the printer from Windows (to print a test page or 
> what have you), I see "Access denied, unable to connect" in red next to the 
> printer.  I'm a bit puzzled by this since I have no other access issues in 
> Samba.  My [Printers] section is pretty standard, but follows below:
> [printers]
>          comment = All Printers
>          path = /var/spool/samba
>          printable = Yes
>          browseable = No
>          guest ok = Yes
> Now, /var/spool/samba didn't exist, and I created that and even did a 
> 'chmod 777' on that directory, but still the "Access denied" persists.  I'm 
> not really sure where to go from here, and find precious little (or I've 
> looked in the wrong places) on Printer sharing in Samba.  I'm CERTAIN this 
> is a common issue, so if someone could direct me to the proper FAQ, I'd be 
> obliged.
> Thanks,
> Chris
> -----
> Chris Olive
> colive(at)technologEase(dot)com
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list