lprng problem
I am having a hard time getting lprng to work. I am pretty sure the
problem is in my /etc/lpd.perms file. With the default /etc/lpd.perms
file, things print just fine. However, I want to restrict who can use my
printer.
The configuration below pretends to do exactly what I want it to, but
print jobs are never actually printed, they just disappear. Other
configurations I have tried give messages which clearly indicate that they
won't work.
This is what I am trying to accomplish:
1. Requests must originate from this host.
2. Root can do anything.
3. Only certain users can print.
4. Jobs can only be removed by user who created them (or root).
I am not too concerned about who can connect, do lpq or status request
(services X, Q and S, respectively), but would prefer restricting those to
the users who can print, if possible.
Any help in correcting my mistakes would be greatly appreciated.
----
#allow all users on local host to connect, get status and queue
ACCEPT SERVICE=XQS REMOTEIP=127.0.0.1
#allow root to do anything
ACCEPT SERVICE=XRPQMCS REMOTEIP=127.0.0.1 USER=root
#allow certain user(s) on local host to print
ACCEPT SERVICE=RP REMOTEIP=127.0.0.1 USER=compman
#allow same user on local host to remove job
ACCEPT SERVICE=M REMOTEIP=127.0.0.1 SAMEUSER
#all other access denied
DEFAULT REJECT
Reply to: