Printer Queue control
Mike Oswell
oswell at xcert.com
Thu Jun 10 20:24:18 GMT 1999
I am setting up samba as a print server on a FreeBSD machine. I would
like the users to be able to control the print queue by using the Pause
option in Windows NT. It seems that I have a permission problem doing
this though.
-- Portion of smb.conf --
[global]
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
queuepause command = /usr/sbin/lpc stop %p
queueresume command = /usr/sbin/lpc start %p
[HPLaserJ]
comment = HP LaserJet 5P/5MP
path = /var/spool/lpd/printer-1-raw
printer driver = HP Laserjet 5P/5MP PostScript
printer = printer-1-raw
writable = no
public = yes
printable = yes
% normal user> /usr/sbin/lpc start HPLaserJ
?Privileged command
This is fixable, but I don't like the fix as I have to add each user into
the operator group.. Even so, if I do this;
% normal user> groups
staff operator
% normal user> /usr/sbin/lpc start HPLaserJ
HPLaserJ:
cannot enable printing
lpc: connect: Permission denied
couldn't start daemon
---------
I had thought it might be permissions on the queue lock file or something
along those lines but doesn't seem to make any difference.
Anyone have any ideas on how I can get normal users to be able to pause
and restart a printer without having to add them into the operator group?
--
Mike Oswell
Xcert International Inc
More information about the samba
mailing list