How to set permissions of printer dev in Ubuntu Jaunty using HP backend

Asked by digger vermont

Hello,

I'm working with a Dell 1425N laptop and a Photosmart D7560. Ubuntu Jaunty is installed. HPLIP is 2.8.12 and the kernel is 2.6.28.

Similar to other questions the problem with permissions. But no answer for me. I'd love to get it figured out so I can write up a yicket for it. Here goes...

~$ lsusb
Bus 007 Device 005: ID 03f0:6f11 Hewlett-Packard

~$ ls -l /dev/bus/usb/007
total 0
crw-rw-r-- 1 root root 189, 768 2009-01-15 17:03 001
crw-rw-r--+ 1 root root 189, 772 2009-01-15 18:14 005

That makes sense to me since the printer also has a storage device. The system also sets up lp0 and a scsi device for the storage. I noticed that the plus-sign gives it an acl attribute.

~$ ls -l /dev/usb
total 0
crw-rw---- 1 root lp 180, 0 2009-01-15 18:14 lp0

So there is also a printer device set to the group lp.

I can't print with the hp backend that uses /dev/bus/usb/xxx/yyy. I can print if I chmod the dev to 666. I can also print with the usb backend that I guess uses /dev/usb/lp0.

So where does the probelm lie? With cups, hplip, hal, policykit. Do acls need to be set somewhere?

Below is the from dmesg and then hp-check.

Thanks for you help - digger

from dmesg:
[ 6574.076961] usb 7-3: USB disconnect, address 5
[ 6579.841101] usb 7-3: new high speed USB device using ehci_hcd and address 6
[ 6579.974604] usb 7-3: configuration #1 chosen from 1 choice
[ 6579.975830] usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x6F11
[ 6579.980148] scsi8 : SCSI emulation for USB Mass Storage devices
[ 6579.980607] usb-storage: device found at 6
[ 6579.980612] usb-storage: waiting for device to settle before scanning
[ 6584.980409] usb-storage: device scan complete
[ 6584.981040] scsi 8:0:0:0: Direct-Access HP Photosmart D7500 1.00 PQ: 0 ANSI: 5
[ 6584.985000] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[ 6584.985660] sd 8:0:0:0: Attached scsi generic sg2 type 0

============================================================
from syslog while attemting to print:

Jan 15 18:56:00 judy Photosmart_D7500_series?serial=MY8AE890PF04V4: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Jan 15 18:56:00 judy Photosmart_D7500_series?serial=MY8AE890PF04V4: io/hpmud/musb.c 603: invalid product id string ret=-1
Jan 15 18:56:00 judy Photosmart_D7500_series?serial=MY8AE890PF04V4: io/hpmud/musb.c 1104: unable to open hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4
Jan 15 18:56:00 judy Photosmart_D7500_series?serial=MY8AE890PF04V4: prnt/backend/hp.c 676: INFO: open device failed stat=12; will retry in 30 seconds...
Jan 15 18:56:00 judy kernel: [ 6763.887837] type=1502 audit(1232063760.960:187): operation="inode_permission" requested_mask="::rw" denied_mask="::rw" fsuid=7 name="/dev/tty" pid=9126 profile="/usr/sbin/cupsd"
Jan 15 18:56:01 judy kernel: [ 6763.948368] type=1502 audit(1232063761.020:188): operation="inode_permission" requested_mask="::rw" denied_mask="::rw" fsuid=7 name="/dev/tty" pid=9128 profile="/usr/sbin/cupsd"
Jan 15 18:56:01 judy hpijs: io/hpmud/musb.c 135: unable get_string_descriptor -1: Operation not permitted
Jan 15 18:56:01 judy hpijs: io/hpmud/musb.c 603: invalid product id string ret=-1
Jan 15 18:56:01 judy hpijs: io/hpmud/musb.c 1104: unable to open hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4

===================================================
hp-check -t

hp-check[7241]: info: :
Initializing. Please wait...
Ubuntu

9.04

scheduler is running

1.3.9

Linux judy 2.6.28-4-generic #10-Ubuntu SMP Mon Jan 12 19:35:29 UTC 2009 i686 GNU/Linux

warning: Invalid ppd_dir value: None
hp-check[7241]: info: :
hp-check[7241]: info: :---------------
hp-check[7241]: info: :| SYSTEM INFO |
hp-check[7241]: info: :---------------
hp-check[7241]: info: :
hp-check[7241]: info: :Basic system information:
hp-check[7241]: info: :Linux judy 2.6.28-4-generic #10-Ubuntu SMP Mon Jan 12 19:35:29 UTC 2009 i686 GNU/Linux

hp-check[7241]: info: :
hp-check[7241]: info: :Distribution:
hp-check[7241]: info: :ubuntu 9.04
hp-check[7241]: info: :
HPOJ running?
hp-check[7241]: info: :No, HPOJ is not running (OK).
hp-check[7241]: info: :
hp-check[7241]: info: :Checking Python version...
hp-check[7241]: info: :OK, version 2.5.4 installed
hp-check[7241]: info: :
hp-check[7241]: info: :Checking PyQt 3.x version...
hp-check[7241]: info: :OK, version 3.17 installed.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking PyQt 4.x version...
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for CUPS...
hp-check[7241]: info: :Status: scheduler is running
hp-check[7241]: info: :Version: 1.3.9
hp-check[7241]: info: :error_log is set to level: debug
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dbus/python-dbus...
hp-check[7241]: info: :dbus daemon is running.
hp-check[7241]: info: :python-dbus version: 0.83.0
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :------------------------------------
hp-check[7241]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[7241]: info: :------------------------------------
hp-check[7241]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: cups - Common Unix Printing System...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: cups-ddk - CUPS driver development kit...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: cups-devel- Common Unix Printing System development files...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: dbus - Message bus system...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: libtool - Library building support services...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: libusb - USB library...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: PyQt 3- Qt interface for Python (for Qt version 3.x)...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: PyQt 4- Qt interface for Python (for Qt version 4.x)...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: python-ctypes - A foreign function library for Python...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: python-dbus - Python bindings for dbus...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: python-devel - Python development files...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: Python XML libraries...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: Reportlab - PDF library for Python...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: SANE - Scanning library...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :----------------------
hp-check[7241]: info: :| HPLIP INSTALLATION |
hp-check[7241]: info: :----------------------
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :Currently installed HPLIP version...
hp-check[7241]: info: :HPLIP 2.8.12 currently installed in '/usr/share/hplip'.
hp-check[7241]: info: :
hp-check[7241]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[7241]: info: :[dirs]
run = /var/run
cupsbackend = /usr/lib/cups/backend
ppd = /usr/share/ppd/hpijs/HP
doc = /usr/share/doc/hplip-doc/HTML
drv = /usr/share/cups/drv
ppdbase = /usr/share/ppd/hpijs
home = /usr/share/hplip
cupsfilter = /usr/lib/cups/filter
icon = no

[last_used]
device_uri = hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4

[hplip]
version = 2.8.12

[configure]
foomatic-rip-hplip-install = no
qt4 = yes
doc-build = yes
qt3 = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.12.26
foomatic-drv-install = yes
foomatic-ppd-install = no
ui-toolkit = qt3
pp-build = yes
scanner-build = yes
network-build = yes
restricted-build = no
dbus-build = yes
shadow-build = no
fax-build = yes

hp-check[7241]: info: :
hp-check[7241]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[7241]: info: :[last_used]
printer_name = Photosmart_D7500
working_dir = /home/digger
device_uri = hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4

[commands]
fax = hp-sendfax -d %FAX_URI%
scan = xsane -V %SANE_URI%
prnt = hp-print -p%PRINTER%
pcard = hp-unload -d %DEVICE_URI%
cpy = hp-makecopies -d %DEVICE_URI%

[installation]
version = 2.8.12.26
date_time = 01/15/09 18:50:12

[refresh]
rate = 30
enable = True
type = 0

hp-check[7241]: info: :
hp-check[7241]: info: :-------------------------------
hp-check[7241]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[7241]: info: :-------------------------------
hp-check[7241]: info: :
hp-check[7241]: info: :No devices found.
hp-check[7241]: info: :
hp-check[7241]: info: :--------------------------
hp-check[7241]: info: :| DISCOVERED USB DEVICES |
hp-check[7241]: info: :--------------------------
hp-check[7241]: info: :
hp-check[7241]: info: : Device URI Model
hp-check[7241]: info: : ----------------------------------------------------- -------------------------------
hp-check[7241]: info: : hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4 HP Photosmart D7500 series
hp-check[7241]: info: :
hp-check[7241]: info: :---------------------------------
hp-check[7241]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[7241]: info: :---------------------------------
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :Photosmart_D7500
hp-check[7241]: info: :----------------
hp-check[7241]: info: :Type: Printer
hp-check[7241]: info: :Installed in HPLIP?: Yes, using the hp: CUPS backend.
hp-check[7241]: info: :Device URI: hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4
hp-check[7241]: info: :PPD: /etc/cups/ppd/Photosmart_D7500.ppd
hp-check[7241]: info: :PPD Description: HP Photosmart d7500 Series Foomatic/hpijs, hpijs 2.8.12
hp-check[7241]: info: :Printer status: printer Photosmart_D7500 is idle. enabled since Thu 15 Jan 2009 06:15:38 PM EST

hp-check[7241]: info: :Communication status: Good
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :----------------------
hp-check[7241]: info: :| SANE CONFIGURATION |
hp-check[7241]: info: :----------------------
hp-check[7241]: info: :
hp-check[7241]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.d/dll.conf).
hp-check[7241]: info: :
hp-check[7241]: info: :Checking output of 'scanimage -L'...
hp-check[7241]: info: :device `v4l:/dev/video0' is a Noname Laptop Integrated Webcam virtual device

hp-check[7241]: info: :
hp-check[7241]: info: :---------------------
hp-check[7241]: info: :| PYTHON EXTENSIONS |
hp-check[7241]: info: :---------------------
hp-check[7241]: info: :
hp-check[7241]: info: :Checking 'cupsext' CUPS extension...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking 'pcardext' Photocard extension...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking 'hpmudext' I/O extension...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :Checking 'scanext' SANE scanning extension...
hp-check[7241]: info: :OK, found.
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :-----------------
hp-check[7241]: info: :| USB I/O SETUP |
hp-check[7241]: info: :-----------------
hp-check[7241]: info: :
hp-check[7241]: info: :
hp-check[7241]: info: :Checking for permissions of USB attached printers...
hp-check[7241]: info: :
HP Device 0x6f11 at 007:005:
hp-check[7241]: info: : Device URI: hp:/usb/Photosmart_D7500_series?serial=MY8AE890PF04V4
hp-check[7241]: info: : Device node: /dev/bus/usb/007/005
hp-check[7241]: info: : Mode: 0664
hp-check[7241]: info: :getfacl: Removing leading '/' from absolute path names

# file: dev/bus/usb/007/005

# owner: root

# group: root

user::rw-

user:digger:rw-

group::rw-

mask::rw-

other::r--

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

hp-check[7241]: info: :
hp-check[7241]: info: :Done.

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

We haven't started testing on jaunty yet--however it appears there is a problem. I'm going to do some testing on the lasted build tomorrow and I'll send some more information after.

Are you using the daily snapshot?

Thanks.

Aaron

Revision history for this message
digger vermont (digver) said :
#2

Yes, I update it regularly. I just tested jaunty-alpha2 on a usb-flash-drive. I can print with the hp-backend from there.

The difference I saw was that /dev/bus/usb/xxx/yyy was owner=lp group=scanner. It was set by /etc/udev/rules.d/024_hpmud.rules. That file or similar doesn't exist in the current jaunty.

This stuff below is from Jaunty-alpha2

crw-rw-r-- 1 root root 189, 768 2009-01-16 08:41 001
crw-rw-r-- 1 root root 189, 769 2009-01-16 08:41 002
crw-rw-r--+ 1 lp scanner 189, 771 2009-01-16 14:10 004

ii apport 0.121 automatically generate crash reports for debugging
ii apport-gtk 0.121 GTK+ frontend for the apport crash report system
ii cups 1.3.9-10 Common UNIX Printing System(tm) - server
ii cups-bsd 1.3.9-10 Common UNIX Printing System(tm) - BSD commands
ii cups-client 1.3.9-10 Common UNIX Printing System(tm) - client programs
ii cups-common 1.3.9-10 Common UNIX Printing System(tm) - common files
ii cups-driver-gutenprint 5.2.0~rc1-0ubuntu2 printer drivers for CUPS
ii cupsddk 1.2.3-5 CUPS Driver Development Kit
ii cupsddk-drivers 1.2.3-5 CUPS Driver Development Kit - Driver files
ii hal 0.5.12~rc1-0ubuntu3 Hardware Abstraction Layer
ii hal-cups-utils 0.6.17+git20080728-0ubuntu2 CUPS integration with HAL
ii hal-info 20081127-0ubuntu1 Hardware Abstraction Layer - fdi files
ii hpijs 2.8.10-1ubuntu1 HP Linux Printing and Imaging - gs IJS driver (hpi
ii hplip 2.8.10-1ubuntu1 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 2.8.10-1ubuntu1 HP Linux Printing and Imaging - data files
ii policykit 0.9-1ubuntu3 framework for managing administrative policies and
ii policykit-gnome 0.9-1ubuntu1 GNOME dialogs for PolicyKit
ii udev 124-11 rule-based device node and kernel event manager

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

Digger,

This should be fixed with the latest Jaunty updates.

You can also see this thread:

https://bugs.launchpad.net/ubuntu/+source/hal/+bug/318262

I have confirmed that the update is working okay for me.

Thanks for your support of HPLIP.

Aaron

Revision history for this message
digger vermont (digver) said :
#4

Thanks Aaron Albright, that solved my question.

Revision history for this message
digger vermont (digver) said :
#5

Aaron, I was about to write the same thing when I got your email. Thanks for your help.

digger

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

No problem.

We appreciate your feedback and support!

Aaron