Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 1999 13:27:38 -0800 (PST)
From:      Philip Hallstrom <philip@adhesivemedia.com>
To:        freebsd-questions@freebsd.org
Subject:   lprm: Permission denied :(
Message-ID:  <Pine.BSF.4.10.9911151327080.39875-100000@mug.adhesivemedia.com>

next in thread | raw e-mail | index | archive | help
Hi -
	I have got the most baffling problem.  I've set up a printer on
FreeBSD 3.2 and I can print just fine... and *I* can use lprm to cancel
jobs, but no one else can.  At first I thought perhaps it was because I am
in the "wheel" group, but I added someone else and they still can't.  root
can use lprm on anyone's jobs okay.

/var/log/lpd-errs doesn't report any errors at all.  Any idea what in the
world is going on?  Thanks!  (Please reply via email as well).


Info (I killed the lpd daemon so nothing actual prints, but I can test):

-------
root@ibc:~% cat /etc/printcap
lp|lw_pro|Laser_Writer_Pro_600:\
                                :sh:\
                                :if=/usr/local/libexec/if-lw_pro:\
                                :lp=/dev/lpt0:\
                                :sd=/var/spool/lpd/lw_pro:\
                                :lf=/var/log/lpd-errs:

root@ibc:~% ls -ld /var/spool/lpd/lw_pro
drwxrwxr-x  2 daemon  daemon  512 Nov 12 12:46 /var/spool/lpd/lw_pro/
root@ibc:~% lpq
no entries
root@ibc:~% su - david
%id
uid=1003(david) gid=1003(david) groups=1003(david), 0(wheel)
%lpr /tmp/psfile
lpr: connect: No such file or directory
jobs queued, but cannot start daemon.
%lpq
Warning: no daemon present
Rank   Owner      Job  Files                                 Total Size
1st    david      24   /tmp/psfile                           137 bytes
%ls -l /var/spool/lpd/lw_pro/
total 4
-rw-rw----  1 daemon  daemon  147 Nov 12 13:02 cfA024ibc.i.adhesivemedia.com
-rw-rw----  1 david   daemon  137 Nov 12 13:02 dfA024ibc.i.adhesivemedia.com
-rw-rw-r--  1 root    daemon    5 Nov 12 12:32 lock
-rw-rw-r--  1 root    daemon   25 Nov 12 12:31 status
%lprm 24
cfA024ibc.i.adhesivemedia.com: Permission denied
%logout
root@ibc:~% su - philip
philip@ibc:~% id 
uid=1001(philip) gid=1001(philip) groups=1001(philip), 0(wheel)
philip@ibc:~% lpr /tmp/psfile
lpr: connect: No such file or directory
jobs queued, but cannot start daemon.
philip@ibc:~% lpq
Warning: no daemon present
Rank   Owner      Job  Files                                 Total Size
1st    david      24   /tmp/psfile                           137 bytes
2nd    philip     25   /tmp/psfile                           137 bytes
philip@ibc:~% ls /var/spool/lpd/lw_pro/
cfA024ibc.i.adhesivemedia.com   dfA024ibc.i.adhesivemedia.com   lock
cfA025ibc.i.adhesivemedia.com   dfA025ibc.i.adhesivemedia.com   status
philip@ibc:~% ls -l /var/spool/lpd/lw_pro/
total 6
-rw-rw----  1 daemon  daemon  147 Nov 12 13:02 cfA024ibc.i.adhesivemedia.com
-rw-rw----  1 daemon  daemon  149 Nov 12 13:03 cfA025ibc.i.adhesivemedia.com
-rw-rw----  1 david   daemon  137 Nov 12 13:02 dfA024ibc.i.adhesivemedia.com
-rw-rw----  1 philip  daemon  137 Nov 12 13:03 dfA025ibc.i.adhesivemedia.com
-rw-rw-r--  1 root    daemon    5 Nov 12 12:32 lock
-rw-rw-r--  1 root    daemon   25 Nov 12 12:31 status
philip@ibc:~% lprm 25
dfA025ibc.i.adhesivemedia.com dequeued
cfA025ibc.i.adhesivemedia.com dequeued
philip@ibc:~% logout
root@ibc:~% lprm 24
dfA024ibc.i.adhesivemedia.com dequeued
cfA024ibc.i.adhesivemedia.com dequeued
root@ibc:~% ls -l `which lprm`
-r-sr-sr-x  1 root  daemon  17400 Jun 15 02:55 /usr/bin/lprm*




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9911151327080.39875-100000>