Win2K Printer "Access Denied" Error

Joel Hammer Joel at HammersHome.com
Sun Dec 16 18:43:03 GMT 2001


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