Having trouble with someone's system using lprng, on bo. Jobs appear
to get accepted into the print queue, but never print to the printer.
It worked up until a day ago, when they copied everything to a new
disk with "cp -ax / /mnt".

Are these permissions all correct?

bash# ls -l /dev/lp*
crw-rw----   1 root     lp         6,   0 Dec  9  1996 /dev/lp0
crw-rw----   1 root     lp         6,   1 Dec  9  1996 /dev/lp1
crw-rw----   1 root     lp         6,   2 Dec  9  1996 /dev/lp2
crw-rw----   1 root     lp         6,   3 Dec  9  1996 /dev/lp3

bash# ls -l /usr/bin/lp*
lrwxrwxrwx   1 root     root            3 May 30 09:37 /usr/bin/lp -> lpr
-rwxr-xr-x   1 root     root       137176 Mar 25  1997 /usr/bin/lpc
-rwxr-xr-x   1 root     root       139700 Mar 25  1997 /usr/bin/lpq
-rwxr-xr-x   1 root     root       181720 Mar 25  1997 /usr/bin/lpr
-rwxr-xr-x   1 root     root        13860 Mar 25  1997 /usr/bin/lpraccnt
-rwxr-xr-x   1 root     root       134676 Mar 25  1997 /usr/bin/lprm
lrwxrwxrwx   1 root     root            3 May 30 09:37 /usr/bin/lpstat -> lpq

bash# ls -l /var/spool
total 12
[...]
drwxrwsr-x   3 root     lp           1024 May 30 09:37 lpd

bash# ls -l /var/spool/lpd/lp/
total 8
-rw-------   1 lp       lp             51 May 30 09:29 control.lp
-rw-------   1 lp       lp              5 May 30 09:29 lp
-rw-rw-r--   1 root     lp             45 Apr 12  1997 status
-rw-------   1 lp       lp           4002 May 30 09:29 status.lp
-rw-------   1 lp       lp              5 May 30 09:29 unspooler.lp


Personally I don't see how this can print (lpr doesn't have permissions
to write to /var/spool/lpd) but I just reinstalled the lprng package
from bo and that's what it set them to. On lpr (rather than lprng)
all the programs are setuid root and setgid lp.

Any ideas? I hate it when people install machines they can't
administer and call me to fix it for free every bloody time.


hamish
-- 
Hamish Moffatt, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to