You are not logged in.

#1 2007-10-06 17:18:12

djclue917
Member
Registered: 2006-12-03
Posts: 121

Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Apparently, there's a permissions-related problem in the hplip 2.7.9-1 package. As a non-root user, you'll get a "Unable to communicate with device" error when trying to access the printer via hp-toolbox. Consequently, as a non-root user, you can't also print (since you can't access the printer hardware).

Can anybody else confirm this?

Last edited by djclue917 (2007-10-09 11:22:27)

Offline

#2 2007-10-06 17:49:20

Anarconda
Member
Registered: 2002-12-23
Posts: 90

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Here is working properly after update.


Scientia et sapientia patrimonium humanitatis sunt.

Offline

#3 2007-10-06 18:25:04

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Weird. What's the output of:
$ groups
?

BTW, did you do anything after the upgrade?

Offline

#4 2007-10-06 18:27:57

Anarconda
Member
Registered: 2002-12-23
Posts: 90

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

[amarcord@Gaia ~]$ groups
wheel log mpd dbus hal video audio optical storage scanner camera power users
[amarcord@Gaia ~]$


I didn't anything. I just checked the printer for your post.

Last edited by Anarconda (2007-10-06 18:29:23)


Scientia et sapientia patrimonium humanitatis sunt.

Offline

#5 2007-10-07 00:49:51

aksdb
Member
Registered: 2007-10-07
Posts: 38

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

I just had the same problem after updating. I got it solved by restarting. As a restart is normally not the only solution (otherwise we would be running windows tongue) I guess there is some other way .... I suspect it has to do with udev, but I didn't want to try around how to "reset" udev on a running system, but I guess that's much easier than I currently think.

Offline

#6 2007-10-07 01:04:15

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

I was able to solve the problem too. At long last! wink
What the hell is the connection of the 'camera' group to the printer?
I was able to access the printer hardware after adding my user to the camera group.

On the other hand, I still can't print anything. I can already access the printer from hp-toolbox but I can't print!

Last edited by djclue917 (2007-10-07 01:13:18)

Offline

#7 2007-10-07 05:35:17

Taylor
Member
From: Clovis California USA
Registered: 2007-07-09
Posts: 49

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

I had a different message regarding foomatic. But I did:

sudo pacman -S hplip -f

Offline

#8 2007-10-07 10:31:36

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

djclue917 wrote:

I was able to solve the problem too. At long last! wink
What the hell is the connection of the 'camera' group to the printer?
I was able to access the printer hardware after adding my user to the camera group.

On the other hand, I still can't print anything. I can already access the printer from hp-toolbox but I can't print!

Does you printer have a builtin card-reader ??

Mine as one, and I also can't print (but see the printer in cups or hp-toolbox), and my printer is also in the camera group.

The problem had also been discussed on the mailing-list [http://archlinux.org/pipermail/arch/200 … 15388.html]

Last edited by slubman (2007-10-07 10:33:47)

Offline

#9 2007-10-07 10:34:59

Matt3o
Member
From: Firenze, Italy
Registered: 2007-09-13
Posts: 177

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

the printer is often mounted into /dev as root:camera. So be sure your user is both in camera and lp groups (you need to relogin to have the new groups applied).

Also, remember to remove "hplip" from the daemons in rc.conf as it is no longer needed.

A good way to find errors is with hp-check (as normal user).

Last edited by Matt3o (2007-10-07 11:55:35)

Offline

#10 2007-10-07 10:50:18

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Here is an hpcheck.log

hp-check[4410]: info: :
Initializing. Please wait...
l'ordonnanceur tourne

1.2.12

Linux melody 2.6.22-ARCH #1 SMP PREEMPT Wed Sep 26 20:57:40 CEST 2007 i686 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz GenuineIntel GNU/Linux

hp-check[4410]: info: :
hp-check[4410]: info: :---------------
hp-check[4410]: info: :| SYSTEM INFO |
hp-check[4410]: info: :---------------
hp-check[4410]: info: :
hp-check[4410]: info: :[01mBasic system information:[0m
hp-check[4410]: info: :Linux melody 2.6.22-ARCH #1 SMP PREEMPT Wed Sep 26 20:57:40 CEST 2007 i686 Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz GenuineIntel GNU/Linux
hp-check[4410]: info: :
hp-check[4410]: info: :[01mDistribution:[0m
hp-check[4410]: info: :unknown 0.0
hp-check[4410]: info: :[01m
HPOJ running?[0m
hp-check[4410]: info: :No, HPOJ is not running (OK).
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking Python version...[0m
hp-check[4410]: info: :OK, version 2.5.1 installed
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking PyQt version...[0m
hp-check[4410]: info: :OK, version 3.17 installed.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking SIP version...[0m
hp-check[4410]: info: :OK, Version 4.7 installed
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for CUPS...[0m
hp-check[4410]: info: :Status: l'ordonnanceur tourne
hp-check[4410]: info: :Version: 1.2.12
hp-check[4410]: info: :
hp-check[4410]: info: :----------------
hp-check[4410]: info: :| DEPENDENCIES |
hp-check[4410]: info: :----------------
hp-check[4410]: info: :
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: cups - Common Unix Printing System...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: cups-devel- Common Unix Printing System development files...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: libusb - USB library...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: ppdev - Parallel port support kernel module....[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: PyQt - Qt interface for Python...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: python-devel - Python development files...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
warning: NOT FOUND! This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
warning: NOT FOUND! This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.
hp-check[4410]: info: :
hp-check[4410]: info: :
hp-check[4410]: info: :----------------------
hp-check[4410]: info: :| HPLIP INSTALLATION |
hp-check[4410]: info: :----------------------
hp-check[4410]: info: :
hp-check[4410]: info: :
hp-check[4410]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[4410]: info: :HPLIP 2.7.9 currently installed in '/usr/share/hplip'.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[4410]: info: :# hplip.conf.  Generated from hplip.conf.in by configure.

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.7.9

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.7.9
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
foomatic=/usr/share/foomatic

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-xml-install=yes
foomatic-ppd-install=no
internal-tag=2.7.9.13

hp-check[4410]: info: :
hp-check[4410]: info: :----------------------
hp-check[4410]: info: :| INSTALLED PRINTERS |
hp-check[4410]: info: :----------------------
hp-check[4410]: info: :
hp-check[4410]: info: :
warning: No queues found.
hp-check[4410]: info: :
hp-check[4410]: info: :----------------------
hp-check[4410]: info: :| SANE CONFIGURATION |
hp-check[4410]: info: :----------------------
hp-check[4410]: info: :
hp-check[4410]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[4410]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[4410]: info: :device `hpaio:/usb/PSC_1600_series?serial=MY56ND42KXL0' is a Hewlett-Packard PSC_1600_series all-in-one

hp-check[4410]: info: :
hp-check[4410]: info: :---------------------
hp-check[4410]: info: :| PYTHON EXTENSIONS |
hp-check[4410]: info: :---------------------
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[4410]: info: :OK, found.
hp-check[4410]: info: :
hp-check[4410]: info: :
hp-check[4410]: info: :-----------------
hp-check[4410]: info: :| USB I/O SETUP |
hp-check[4410]: info: :-----------------
hp-check[4410]: info: :
hp-check[4410]: info: :
hp-check[4410]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[4410]: info: :HP Device 0x4811 at 003:003: 
hp-check[4410]: info: :    Device URI: hp:/usb/PSC_1600_series?serial=MY56ND42KXL0
hp-check[4410]: info: :    Device node: /dev/bus/usb/003/003
hp-check[4410]: info: :    Mode: 0664
hp-check[4410]: info: :getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/003/003
# owner: root
# group: camera
user::rw-
group::rw-
other::r--


hp-check[4410]: info: :
hp-check[4410]: info: :-----------
hp-check[4410]: info: :| SUMMARY |
hp-check[4410]: info: :-----------
hp-check[4410]: info: :
error: 2 errors and/or warnings.
hp-check[4410]: info: :
hp-check[4410]: info: :Please refer to the installation instructions at:
hp-check[4410]: info: :http://hplip.sourceforge.net/install/index.html

And my groups membership:

$ id
uid=1001(slubman) gid=100(users) groupes=7(lp),10(wheel),11(ftp),21(slocate),91(video),92(audio),93(optical),95(storage),97(camera),100(users),101(packages),131(pulse-access),132(kvm)

Something wrong ??

Offline

#11 2007-10-07 12:02:15

Matt3o
Member
From: Firenze, Italy
Registered: 2007-09-13
Posts: 177

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

slubman wrote:

Something wrong ??

everything seems okay. What I'd do is:
- turn off printer
- remove the HP printer from cups
- remove hplip from daemons in rc.conf
- reboot
- turn on printer
- reinstall the printer

Edit:

also try

sudo chown root:lp /dev/bus/usb/00X/00Y

where X and Y are the USB numbers where your printer is connected to.

Last edited by Matt3o (2007-10-07 12:47:03)

Offline

#12 2007-10-07 13:32:41

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

slubman wrote:
djclue917 wrote:

I was able to solve the problem too. At long last! wink
What the hell is the connection of the 'camera' group to the printer?
I was able to access the printer hardware after adding my user to the camera group.

On the other hand, I still can't print anything. I can already access the printer from hp-toolbox but I can't print!

Does you printer have a builtin card-reader ??

Mine as one, and I also can't print (but see the printer in cups or hp-toolbox), and my printer is also in the camera group.

The problem had also been discussed on the mailing-list [http://archlinux.org/pipermail/arch/200 … 15388.html]

Nope. My printer doesn't have one. It's an HP Deskjet 3845.

Offline

#13 2007-10-07 13:47:26

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Matt3o wrote:
slubman wrote:

Something wrong ??

everything seems okay. What I'd do is:
- turn off printer
- remove the HP printer from cups
- remove hplip from daemons in rc.conf
- reboot
- turn on printer
- reinstall the printer

Edit:

also try

sudo chown root:lp /dev/bus/usb/00X/00Y

where X and Y are the USB numbers where your printer is connected to.

Changin the group owner work without all the other steps, I can now print smile

The question is : Why does udev give wrong ownership to the printer ??

Offline

#14 2007-10-07 13:48:36

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Matt3o wrote:

the printer is often mounted into /dev as root:camera. So be sure your user is both in camera and lp groups (you need to relogin to have the new groups applied).

Also, remember to remove "hplip" from the daemons in rc.conf as it is no longer needed.

A good way to find errors is with hp-check (as normal user).

Actually, $ ls -l /dev/bus/usb/*/*:

crw-rw-r-- 1 root camera 189,   0 2007-10-08 05:43 /dev/bus/usb/001/001
crw-rw-r-- 1 root camera 189, 128 2007-10-08 05:43 /dev/bus/usb/002/001
crw-rw-r-- 1 root camera 189, 256 2007-10-08 05:43 /dev/bus/usb/003/001
crw-rw-r-- 1 root camera 189, 384 2007-10-08 05:43 /dev/bus/usb/004/001
crw-rw-r-- 1 root camera 189, 385 2007-10-07 21:46 /dev/bus/usb/004/002
crw-rw-r-- 1 root camera 189, 512 2007-10-08 05:43 /dev/bus/usb/005/001

All of my USB devices are owned by root:camera. Why is that?

BTW, I did the steps that you've specified but I still can't print.

Offline

#15 2007-10-07 13:58:09

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

slubman wrote:
Matt3o wrote:
slubman wrote:

Something wrong ??

everything seems okay. What I'd do is:
- turn off printer
- remove the HP printer from cups
- remove hplip from daemons in rc.conf
- reboot
- turn on printer
- reinstall the printer

Edit:

also try

sudo chown root:lp /dev/bus/usb/00X/00Y

where X and Y are the USB numbers where your printer is connected to.

Changin the group owner work without all the other steps, I can now print smile

The question is : Why does udev give wrong ownership to the printer ??

I answer to my own question.

By moving /etc/udev/rules.d/gphoto.rules to /etc/udev/rules.d/54-gphoto.rules so that the hplip rules (/etc/udev/rules.d/55-hpmud.rules) apply after, the printer have the good rights after a reboot.

Thank you to solsTiCe for the tip

Last edited by slubman (2007-10-07 13:59:17)

Offline

#16 2007-10-07 14:07:11

Matt3o
Member
From: Firenze, Italy
Registered: 2007-09-13
Posts: 177

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

slubman wrote:

By moving /etc/udev/rules.d/gphoto.rules to /etc/udev/rules.d/54-gphoto.rules so that the hplip rules (/etc/udev/rules.d/55-hpmud.rules) apply after, the printer have the good rights after a reboot.

nice find slubman!

Offline

#17 2007-10-07 18:33:38

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Everything is working fine after the permissions got fixed. So it was indeed a permissions-related problem...

Offline

#18 2007-10-07 20:02:11

Mallo
Member
From: Italy (Como)
Registered: 2007-04-16
Posts: 10
Website

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

djclue917 wrote:

Everything is working fine after the permissions got fixed. So it was indeed a permissions-related problem...

Yes, probably it's that. I've, too, used the sudo command and everything is working now wink.

Thanks everybody

Offline

#19 2007-10-07 22:39:36

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

I can get my HP3030 printer to work only if I select the nonHPLIP printer from the KDE list of printers. If I choose the HPLIP version of the printer, it won't print.

Later ... This worked for me:

By moving /etc/udev/rules.d/gphoto.rules to /etc/udev/rules.d/54-gphoto.rules so that the hplip rules (/etc/udev/rules.d/55-hpmud.rules) apply after, the printer have the good rights after a reboot.

Thanks

Last edited by ralvy (2007-10-07 22:45:33)

Offline

#20 2007-10-08 14:24:42

ralvy
Member
From: Santa Monica, California
Registered: 2004-12-06
Posts: 275

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Fixed with hplip-2.7.9-2

Offline

#21 2007-10-08 16:09:17

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

Not sure which of the suggestions worked..but one of them worked, (at least after the 3rd trial and reboot) because I tried them all. tongue
Thanks to all.

Offline

#22 2007-10-08 23:50:57

joliveirinha
Member
Registered: 2007-04-06
Posts: 3

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

I have the same problem but my printer is a C3100 series with scanner.. so udev give the wrong permissions.

hp-check ..

Checking for permissions of USB attached printers...
HP Device 0x5611 at 001:004:
    Device URI: hp:/usb/Photosmart_C3100_series?serial=MY69SC613F04P9
    Device node: /dev/bus/usb/001/004
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/004
# owner: root
# group: scanner
user::rw-
group::rw-
other::r--

if I change the permissions to lp then all printing functions work ok but not scanner.

have any ideas how to solve this problem ?

thanks

Last edited by joliveirinha (2007-10-08 23:52:02)

Offline

#23 2007-10-09 11:20:58

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

ralvy wrote:

Fixed with hplip-2.7.9-2

Actually, the problem was fixed by libgphoto2 2.3.1-3. wink

Offline

#24 2007-10-09 11:21:42

djclue917
Member
Registered: 2006-12-03
Posts: 121

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

joliveirinha wrote:

I have the same problem but my printer is a C3100 series with scanner.. so udev give the wrong permissions.

hp-check ..

Checking for permissions of USB attached printers...
HP Device 0x5611 at 001:004:
    Device URI: hp:/usb/Photosmart_C3100_series?serial=MY69SC613F04P9
    Device node: /dev/bus/usb/001/004
    Mode: 0664
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/004
# owner: root
# group: scanner
user::rw-
group::rw-
other::r--

if I change the permissions to lp then all printing functions work ok but not scanner.

have any ideas how to solve this problem ?

thanks

Have you upgraded already to libgphoto2 2.3.1-3?

Offline

#25 2007-10-09 16:34:33

joliveirinha
Member
Registered: 2007-04-06
Posts: 3

Re: Permissions problem in hplip 2.7.9-1 [FIXED: FS#8240]

yes I have.

Offline

Board footer

Powered by FluxBB