permissions issue
After upgrading hplip, cups, and foomatic, I can no longer print to my Photosmart C3180. The printer is detected fine, but after submitting a print job, I get these messages every 30 seconds (and no print):
Sep 28 13:29:03 hosta Photosmart_
Sep 28 13:29:03 hosta Photosmart_
Sep 28 13:29:03 hosta Photosmart_
Sep 28 13:29:04 hosta Photosmart_
The messages are coming from this process:
lp 6519 0.0 0.0 2832 1024 ? S 13:11 0:00 hp:/usb/
When I trace the process, I can see where the breakdown occurs:
hosta # strace -s 255 -fp 6519
Process 6519 attached - interrupt to quit
restart_
open("/
fstat64(6, {st_mode=
getdents(6, /* 8 entries */, 4096) = 132
getdents(6, /* 0 entries */, 4096) = 0
close(6) = 0
open("/
fstat64(6, {st_mode=
getdents(6, /* 3 entries */, 4096) = 48
open("/
...
You can see that the /proc/bus/
hosta # ls -l /proc/bus/
-rw-rw-r-- 1 root usb 43 Sep 27 03:10 /proc/bus/
And that the lp user is a member of the usb group, so should have no problem opening that file read/write:
hosta # id lp
uid=4(lp) gid=7(lp) groups=
I have gone as far as to reboot the box, and yet the process still reports permission denied. Clearly the lp user can open that file read/write:
hosta root # su lp
lp@hosta /root $ id
uid=4(lp) gid=7(lp) groups=
lp@hosta /root $ python
Python 2.5.2 (r252:60911, Sep 1 2008, 04:12:43)
[GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> open("/
<open file '/proc/
So why is this not working? Does the hplip process somehow try to open the file with explicit group membership?
Any help is appreciated!
Martin
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask martin for more information if necessary.