LPRng and SAMBA

Mike Fedyk mikef at matchmail.com
Tue Mar 13 05:00:00 GMT 2001


On Mon, Mar 12, 2001 at 03:05:13PM -0500, Michael Blinn wrote:
>   First of all, thanks to everyone who has helped me out so far resolving
> my samba problems!
> 
>   The latest has to do with LPRng and directory permissions. LPRng
> requires 0600 permissions on the spool directory, owner daemon group
> daemon. Whenever a user tries to print through SAMBA, they do not have
> write access to the spool directory, as teh job comes in user/group of
> the person who printed. Any ideas? The relevant entries in smb.conf are
> below.
> Thanks!
>   Michael BLinn
>   People Places, Inc.
> 
> [global]
>         load printers = yes
>         printcap name = /usr/local/etc/printcap
> 
> [Printdown]
>         path = /var/spool/lpd/printdown
>         print ok = yes
>         printing = lprng

IIRC, the path shouldn't be to the printer's spool directory with lprng.
the lpr command actually takes the file specified and sends it through a
network socket to the server, and that handles the spool dir.

>         guest ok = no
>         print command =      /usr/local/bin/lpr  -P%p -r %s
>         lpq command   =      /usr/local/bin/lpq  -P%p
>         lprm command  =      /usr/local/bin/lprm -P%p %j
>         lppause command =    /usr/local/sbin/lpc hold %p %j
>         lpresume command =   /usr/local/sbin/lpc release %p %j
>         queuepause command = /usr/local/sbin/lpc  -P%p stop
>         queueresume command = /usr/local/sbin/lpc -P%p start
> 

I think you should change the path to /tmp, and leave out the specific lp
commands.





More information about the samba mailing list