Win2K Printer "Access Denied" Error
jfollansbee at att.net
jfollansbee at att.net
Sun Dec 16 19:43:02 GMT 2001
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 at 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
>
More information about the samba
mailing list