cannot print without changing permission on my device

Asked by lio-05

hello,

I have mandriva 2008 on my computer on which I installed hplip ver. 2.7.9 to use my printer PSC 2355.
Everything went fine during the installation.

I set up my printer using hp-setup, everything is ok.
I can scan, but I can't print!

The error message I get is "open device failed; will retry in 30 seconds" (even when trying to print a test page from hp-toolbox)

By running hp-check, I noticed that the printer was "mounted" on /dev/bus/usb/00x/00y whith permission 660.
If I change the permission to 666 everything is ok, I can print.
But each time I turn off my printer or computer, I have to re-change the permission of the device if I want to print.
I also add the users to the group "lp" but without effect.

Is there a way to avoid having to set the permission every time I want to use my printer?

thank you by advance,

Lionel

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Albright
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Can you run:

cat /etc/security/console.perms.d/50-mandriva.perms

and post the output?

Thanks!

A

Revision history for this message
lio-05 (lio-paris) said :
#2

Here your!

Thank you and sorry for the delay!

cat /etc/security/console.perms.d/50-mandriva.perms
<serial>=/dev/ttyS* /dev/rfcomm* /dev/ircomm* /dev/ttyACM*
<misc>=/dev/nvram
<burner>=/dev/cdwriter /dev/scd* /dev/sg* /dev/cdrw* /dev/dvdrw*
<usb>=/dev/usb/dabusb* /dev/usb/mdc800* /dev/usb/rio500 /dev/ttyUSB* \
      /proc/bus/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9] /dev/bus/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9]
<irremote>=/dev/input/by-path/*-ir
<mouse>=/dev/input/by-path/*-event-mouse
<lp>=/dev/parport*

<console> 0660 <serial> 0660 root.uucp
<console> 0400 <misc> 0600 root
<console> 0660 <burner> 0660 root.cdwriter
<console> 0660 <usb> 0660 root.usb
<console> 0600 <irremote> 0600 root
<console> 0600 <mouse> 0600 root
<console> 0660 <lp> 0660 root.lp

Revision history for this message
Best Aaron Albright (albrigha-deactivatedaccount) said :
#3

Please review this doc:

http://hplip.sourceforge.net/install/manual/distros/mandriva.html

It has information on how to configure mandriva permissions at Step 8.

Hope this helps!

A

Revision history for this message
lio-05 (lio-paris) said :
#4

Thank you very much, everything is ok now.

Lionel

Revision history for this message
lio-05 (lio-paris) said :
#5

Thanks Aaron Albright, that solved my question.

Revision history for this message
jason (jason-d-sanford) said :
#6

I appear to be having the same problem on PCLinux.
However, I am not finding what I need to know at this link.
http://hplip.sourceforge.net/install/manual/distros/mandriva.html

Thank You for your help.

Here are the contents of 50-mandriva.perms.

[root@localhost console.perms.d]# cat 50-mandriva.perms
<serial>=/dev/ttyS* /dev/rfcomm* /dev/ircomm* /dev/ttyACM*
<misc>=/dev/nvram
<burner>=/dev/cdwriter /dev/scd* /dev/sg* /dev/cdrw* /dev/dvdrw*
<usb>=/dev/usb/dabusb* /dev/usb/mdc800* /dev/usb/rio500 /dev/ttyUSB* \
      /proc/bus/usb/[0-9][0-9][0-9]/[0-9][0-9][0-9] /dev/bus/usb/[0-9][0-9][0-]/[0-9][0-9][0-9]
<irremote>=/dev/input/by-path/*-ir

<console> 0660 <serial> 0660 root.uucp
<console> 0400 <misc> 0600 root
<console> 0660 <burner> 0660 root.cdwriter
<console> 0660 <usb> 0660 root.usb
<console> 0600 <irremote> 0600 root
[root@localhost console.perms.d]#