Red Hat Bugzilla – Bug 17225
Ordinary user can't print: Permission denied
Last modified: 2008-05-01 11:37:58 EDT
This is LPRng-3.6.22-3 rebuilt for RH6.2. When a normal user attempts
to print a file, he gets the message:
Warning - Cannot open file 'xxx.txt', Permission denied
lp: nothing to print
xxx.txt has permissions -rw-rw-r--, and has the user as owner and group.
Root can print the same file with no problems.
can you send me the result of the following commands?
ls -l `which lpr`
ls -ld .
thanks, but yes, there were some, ah, issues, that are probably fixed in the
[mjs@yankee ~]: ls -l `which lpr`
-rwsr-xr-x 1 lp lp 462344 Sep 3 18:55 /usr/bin/lpr*
[mjs@yankee ~]: ls -ld .
drwx------ 95 mjs mjs 6144 Sep 11 12:46 ./
Possibly related: On reboot, lpd complained:
cannot open lp device '/dev/lp0' - Permission denied
[mjs@yankee ~]: ls -l /dev/lp0
crw-rw---- 1 root daemon 6, 0 May 5 1998 /dev/lp0
Hmm, /dev/lp* should look like this, so make that owner change
crw-rw---- 1 root lp 6, 0 Aug 24 05:00 /dev/lp0
and you should also chmod all the user tools (lpr, lpstat, lpq, lpc) to 0755,
they should NOT be setuid.
These are already address in-house, so there is no fix.