From owner-freebsd-questions Mon Nov 15 13:27: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mug.adhesivemedia.com (mug.adhesivemedia.com [207.202.159.73]) by hub.freebsd.org (Postfix) with ESMTP id 6E95814BD5 for ; Mon, 15 Nov 1999 13:26:51 -0800 (PST) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by mug.adhesivemedia.com (8.9.3/8.9.3) with ESMTP id NAA40005 for ; Mon, 15 Nov 1999 13:27:38 -0800 (PST) (envelope-from philip@adhesivemedia.com) Date: Mon, 15 Nov 1999 13:27:38 -0800 (PST) From: Philip Hallstrom To: freebsd-questions@freebsd.org Subject: lprm: Permission denied :( Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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