Hello, I have a new RH 7.2 installation (kernel 2.4.7-10) with Samba 2.2.1a and I can't print from my Win2K box. I get an "Access denied: unable to connect" error from the printer entry in Windows. The logs don't seem to be helping me. Here's my smb.conf file: [global] workgroup = MYGROUP server string = Samba SMB Server interfaces = 192.168.1.1/24 127.0.0.1/24 hosts allow = 192.168.1. 192.168.2. 127. bind interfaces only = Yes security = USER log file = /var/log/samba/log.%m max log size = 50 read bmpx = No time server = Yes socket options = TCP_NODELAY os level = 65 preferred master = Yes dns proxy = No wins support = Yes guest account = smbuser hide dot files = No printcap name = /etc/printcap load printers = yes printing = bsd encrypt passwords = yes smb passwd file = /etc/smbpasswd [nec] path = /var/spool/samba user = follansbee printer = lp0 print ok = Yes Any ideas? Joe -- Joe Follansbee Streaming Media Producer/Consultant 206-932-7578 http://www.follansbeeconsulting.com
Add: use client driver = yes to your global section. Noel -----Original Message----- From: jfollansbee@att.net [mailto:jfollansbee@att.net] Sent: 16 December 2001 17:37 To: samba@lists.samba.org Subject: Win2K Printer "Access Denied" Error Hello, I have a new RH 7.2 installation (kernel 2.4.7-10) with Samba 2.2.1a and I can't print from my Win2K box. I get an "Access denied: unable to connect" error from the printer entry in Windows. The logs don't seem to be helping me. Here's my smb.conf file: [global] workgroup = MYGROUP server string = Samba SMB Server interfaces = 192.168.1.1/24 127.0.0.1/24 hosts allow = 192.168.1. 192.168.2. 127. bind interfaces only = Yes security = USER log file = /var/log/samba/log.%m max log size = 50 read bmpx = No time server = Yes socket options = TCP_NODELAY os level = 65 preferred master = Yes dns proxy = No wins support = Yes guest account = smbuser hide dot files = No printcap name = /etc/printcap load printers = yes printing = bsd encrypt passwords = yes smb passwd file = /etc/smbpasswd [nec] path = /var/spool/samba user = follansbee printer = lp0 print ok = Yes Any ideas? Joe -- Joe Follansbee Streaming Media Producer/Consultant 206-932-7578 http://www.follansbeeconsulting.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Sorry, it didn't work. Here's the output from the smbd log: [2001/12/17 06:06:00, 0] param/loadparm.c:lp_do_parameter (2548) Ignoring unknown parameter "use client driver" I checked the 'user client driver' section of the man page for smb.conf and its not clear whether I have a driver or not installed for this printer on the host, although I am able to print from the host machine fine with either an HP Laser Jet driver or the NEC driver. Feedback? Joe -- Joe Follansbee Streaming Media Producer/Consultant 206-932-7578 http://www.follansbeeconsulting.com> Add: > > use client driver = yes > > to your global section. > > Noel > > -----Original Message----- > From: jfollansbee@att.net [mailto:jfollansbee@att.net] > Sent: 16 December 2001 17:37 > To: samba@lists.samba.org > Subject: Win2K Printer "Access Denied" Error > > > Hello, > > I have a new RH 7.2 installation (kernel 2.4.7-10) with > Samba 2.2.1a and I can't print from my Win2K box. I get > an "Access denied: unable to connect" error from the > printer entry in Windows. The logs don't seem to be > helping me. Here's my smb.conf file: > > [global] > workgroup = MYGROUP > server string = Samba SMB Server > interfaces = 192.168.1.1/24 127.0.0.1/24 > hosts allow = 192.168.1. 192.168.2. 127. > bind interfaces only = Yes > security = USER > log file = /var/log/samba/log.%m > max log size = 50 > read bmpx = No > time server = Yes > socket options = TCP_NODELAY > os level = 65 > preferred master = Yes > dns proxy = No > wins support = Yes > guest account = smbuser > hide dot files = No > printcap name = /etc/printcap > load printers = yes > printing = bsd > encrypt passwords = yes > smb passwd file = /etc/smbpasswd > > [nec] > path = /var/spool/samba > user = follansbee > printer = lp0 > print ok = Yes > > Any ideas? > > Joe > -- > Joe Follansbee > Streaming Media Producer/Consultant > 206-932-7578 > http://www.follansbeeconsulting.com > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Isn't printing in RH 7.2 lprng, not bsd? See my notes below. Joel On Sun, Dec 16, 2001 at 05:36:57PM +0000, jfollansbee@att.net wrote:> Hello, > > > [nec] > path = /var/spool/samba > user = follansbee > printer = lp0 <----This seems odd. > print ok = Yes <---this seems odd.Have you run testparm and testprn nec or whatever your printer is called ? Try this: You will have to change all "lp" to your own linux printqueue, of course. The fancy print command with J allows the file name to be displayed in the queue. [nec] comment = Raw Printer for Z53 path = /tmp create mask = 0700 guest ok = Yes hosts allow = 192.168. printable = Yes printing = lprng # print command = echo "Tried to print %s" > /SPOOL/junk.%s print command = echo %J %p %s >> /tmp/junkJ;\ a="`echo '%J' | sed "s/^.*- //"`" ;\ echo This is truncated $a >> /tmp/junkJ;\ /usr/bin/lpr -Plp -J"$a" %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j printer name = lp share modes = No
Well, thanks for the suggestions, but they didn't seem to work. Still getting "Access denied: unable to connect" (Win2K and RH 7.2) Here's the new smb.conf file. Testparm says it's fine. Interestingly, when I tried to reinstall the printer, the Win2K wizard said the printer's status was "ready," but it prompted me to install the driver. I don't have the file "testprn" on my system. Should I? Note that I changed the security level to SHARE since I commented out the user = line in the printer ([nec]) section. Apologies if I'm a bit dense on this one. Thanks for your patience and help. [global] workgroup = MYGROUP server string = Samba SMB Server interfaces = 192.168.1.2/24 127.0.0.1/24 bind interfaces only = Yes security = SHARE log file = /var/log/samba/log.%m max log size = 50 read bmpx = No time server = Yes socket options = TCP_NODELAY os level = 65 preferred master = Yes dns proxy = No wins support = Yes guest account = smbuser hide dot files = No printcap name = /etc/printcap load printers = yes ; printing = lprng encrypt passwords = yes smb passwd file = /etc/smbpasswd <snip> [nec] ; path = /var/spool/samba ; user = follansb, wingardner, emilyabbey, smbuser ; printer = lp0 ; print ok = Yes comment = Raw Printer for Z53 path = /tmp create mask = 0700 guest ok = Yes hosts allow = 192.168. printable = Yes printing = lprng # print command = echo "Tried to print %s"> /SPOOL/junk.%sprint command = echo %J %p %s >> /tmp/junkJ;\ a="`echo '%J' | sed "s/^.*- //"`" ;\ echo This is truncated $a >> /tmp/junkJ;\ /usr/bin/lpr -Plp -J"$a" %s;\ rm %s lpq command = /usr/bin/lpq -Plp lprm command = /usr/bin/lprm -Plp %j lppause command = /usr/sbin/lpc hold -Plp %j lpresume command = /usr/sbin/lpc release -Plp %j printer name = lp share modes = No -- Joe Follansbee Streaming Media Producer/Consultant 206-932-7578 http://www.follansbeeconsulting.com> Isn't printing in RH 7.2 lprng, not bsd? > See my notes below. > Joel > > On Sun, Dec 16, 2001 at 05:36:57PM +0000,jfollansbee@att.net wrote:> > Hello, > > > > > > [nec] > > path = /var/spool/samba > > user = follansbee > > printer = lp0 <----This seems odd. > > print ok = Yes <---this seems odd. > Have you run testparm and testprn nec or whatever yourprinter is called ?> > > Try this: > You will have to change all "lp" to your own linuxprintqueue, of course.> The fancy print command with J allows the file name tobe displayed in> the queue. > > > > [nec] > comment = Raw Printer for Z53 > path = /tmp > create mask = 0700 > guest ok = Yes > hosts allow = 192.168. > printable = Yes > printing = lprng > # print command = echo "Tried to print %s" > /SPOOL/junk.%s > print command = echo %J %p %s >> /tmp/junkJ;\ > a="`echo '%J' | sed "s/^.*-//"`" ;\> echo This is truncated $a >> /tmp/junkJ;\ > /usr/bin/lpr -Plp -J"$a" %s;\ > rm %s > lpq command = /usr/bin/lpq -Plp > lprm command = /usr/bin/lprm -Plp %j > lppause command = /usr/sbin/lpc hold -Plp %j > lpresume command = /usr/sbin/lpc release -Plp %j> printer name = lp > share modes =No>
You have made sure the RH firewall is not blocking you out from windows? Post your /etc/printcap file. Is there a real user smbuser? There is no such user on my RH 7.2 system. ftp works well as a guest user. I would try to use a simple print command like: print command = echo %s > /tmp/SPOOL and see if the print file winds up there. The "missing" command is testprns ^ On my RH 7.2 system is it in: /usr/bin Joel On Mon, Dec 17, 2001 at 03:39:24AM +0000, jfollansbee@att.net wrote:> Well, thanks for the suggestions, but they didn't seem > to work. Still getting "Access denied: unable to > connect" (Win2K and RH 7.2) Here's the new smb.conf > file. Testparm says it's fine. Interestingly, when I > tried to reinstall the printer, the Win2K wizard said > the printer's status was "ready," but it prompted me to > install the driver. > > I don't have the file "testprn" on my system. Should I? > Note that I changed the security level to SHARE since I > commented out the user = line in the printer ([nec]) > section. Apologies if I'm a bit dense on this one. > > Thanks for your patience and help. > > [global] > workgroup = MYGROUP > server string = Samba SMB Server > interfaces = 192.168.1.2/24 127.0.0.1/24 > bind interfaces only = Yes > security = SHARE > log file = /var/log/samba/log.%m > max log size = 50 > read bmpx = No > time server = Yes > socket options = TCP_NODELAY > os level = 65 > preferred master = Yes > dns proxy = No > wins support = Yes > guest account = smbuser > hide dot files = No > printcap name = /etc/printcap > load printers = yes > ; printing = lprng > encrypt passwords = yes > smb passwd file = /etc/smbpasswd > > <snip> > > [nec] > ; path = /var/spool/samba > ; user = follansb, wingardner, emilyabbey, smbuser > ; printer = lp0 > ; print ok = Yes > comment = Raw Printer for Z53 > path = /tmp > create mask = 0700 > guest ok = Yes > hosts allow = 192.168. > printable = Yes > printing = lprng > # print command = echo "Tried to print %s" > > /SPOOL/junk.%s > print command = echo %J %p %s >> /tmp/junkJ;\ > a="`echo '%J' | sed "s/^.*- //"`" ;\ > echo This is truncated $a >> /tmp/junkJ;\ > /usr/bin/lpr -Plp -J"$a" %s;\ > rm %s > lpq command = /usr/bin/lpq -Plp > lprm command = /usr/bin/lprm -Plp %j > lppause command = /usr/sbin/lpc hold -Plp %j > lpresume command = /usr/sbin/lpc release -Plp %j > printer name = lp > share modes = No > > > -- > Joe Follansbee > Streaming Media Producer/Consultant > 206-932-7578 > http://www.follansbeeconsulting.com > > > > > Isn't printing in RH 7.2 lprng, not bsd? > > See my notes below. > > Joel > > > > On Sun, Dec 16, 2001 at 05:36:57PM +0000, jfollansbee@att.net wrote: > > > Hello, > > > > > > > > > [nec] > > > path = /var/spool/samba > > > user = follansbee > > > printer = lp0 <----This seems odd. > > > print ok = Yes <---this seems odd. > > Have you run testparm and testprn nec or whatever your printer is called ? > > > > > > Try this: > > You will have to change all "lp" to your own linux printqueue, of course. > > The fancy print command with J allows the file name to be displayed in > > the queue. > > > > > > > > [nec] > > comment = Raw Printer for Z53 > > path = /tmp > > create mask = 0700 > > guest ok = Yes > > hosts allow = 192.168. > > printable = Yes > > printing = lprng > > # print command = echo "Tried to print %s" > /SPOOL/junk.%s > > print command = echo %J %p %s >> /tmp/junkJ;\ > > a="`echo '%J' | sed "s/^.*- //"`" ;\ > > echo This is truncated $a >> /tmp/junkJ;\ > > /usr/bin/lpr -Plp -J"$a" %s;\ > > rm %s > > lpq command = /usr/bin/lpq -Plp > > lprm command = /usr/bin/lprm -Plp %j > > lppause command = /usr/sbin/lpc hold -Plp %j > > lpresume command = /usr/sbin/lpc release -Plp %j > > printer name = lp > > share modes = No > >