Chris Olive
2002-Jul-05 19:00 UTC
[Samba] Linux printer shows in Net Neighborhood, but "No Access"
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
Joel Hammer
2002-Jul-05 19:41 UTC
[Samba] Linux printer shows in Net Neighborhood, but "No Access"
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.: [ps] 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. Joel 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
Ben Griffith
2002-Jul-06 04:36 UTC
[Samba] Linux printer shows in Net Neighborhood, but "No Access"
-----[ colive@technologEase.com wrote on 7/5/2002 8:56 PM -0500 ]----- --> I see "Access denied, unable to connect" in red next to the printer I added printer admin = @mygroup to my [global] section to take care of this. It happened to me from Win2K or XP machines but not 9x series. You can also specify a username there if you want, or a comma separated list of @groups and usernames. HTH --Ben-- ---------------------------- Ben Griffith bgriffit@email.unc.edu ----------------------------
Apparently Analagous Threads
- Can't connect after AuthN: NT_STATUS_ACCESS_DENIED
- Can't connect after AuthN: NT_STATUS_ACCESS_DENIED
- Can't connect after AuthN: NT_STATUS_ACCESS_DENIED
- Win2K Printer "Access Denied" Error
- Network Neighborhood shows Linux icon doesn't allow to open, debug Marathon