Re: Perms on LPRng
Peter Paluch <peterp@frcatel.utc.sk> writes:
> Hello everybody,
> ================
>
> I have problem with LPRng - as normal user I can't remove my print jobs
> even if they were sent by myself. I can do it only as root. Here is what
> is says when I try to remove some job (printing ext2.ps):
>
> knm:~$ lprm
> Printer lp@knm:
> checking 'peterp@knm+943'
> checking perms 'peterp@knm+943'
> no permissions 'peterp@knm+943'
>
> Is it just a matter of directory permissions? Have a look at this
> listing, it shows perms of /var/spool/lpd:
>
> knm:~# ls -al /var/spool/lpd
> drwx--S--- 3 lp lp 1024 Feb 22 15:50 .
> drwxr-xr-x 17 root root 1024 Jan 16 23:39 ..
> drwx--S--- 2 lp lp 1024 Feb 22 16:25 hplj6l
> -rw------- 1 lp lp 0 Feb 22 15:50 lpd.lock.knm
> -rw------- 1 lp lp 4 Feb 22 16:19 lpd.lock.knm.printer
>
> What am I doing wrong?
I have lprn 3.2.1-1 installed and my permission in /var/spool/lpd are
different:
~/tmp$ ls -l /var/spool/lpd
total 9
drwxrwsr-x 7 lp lp 1024 Feb 10 20:56 ./
drwxr-xr-x 17 root root 1024 Sep 21 11:23 ../
drwxrwxr-x 2 root lp 2048 Feb 25 10:32 hplj5l/
drwxrwsr-x 2 lp lp 1024 Mar 25 1997 lp/
-rw------- 1 lp lp 4 Feb 25 09:04 lpd.lock.marvin.printer
drwxrwxr-x 2 root lp 1024 Feb 22 09:19 stc600/
drwxrwxr-x 2 root lp 1024 Feb 22 09:27 stc600-high/
drwxrwxr-x 2 root lp 1024 Feb 10 20:59 test/
Use
chmod 2775 /var/spool/lpd /var/spool/lpd/hplj6l
to correct this.
The g+s on the directory means, that files created in this directory
should inheritent its permission. This is obviously missing in your
(packages) setup.
Torsten
--
I haven't lost my mind -- it's backed up on tape somewhere.
Fortune Cookie
PGP Public key available
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: