How to set permissions of printer dev in Ubuntu Jaunty using HP backend
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/
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_
Jan 15 18:56:00 judy Photosmart_
Jan 15 18:56:00 judy Photosmart_
Jan 15 18:56:00 judy Photosmart_
Jan 15 18:56:00 judy kernel: [ 6763.887837] type=1502 audit(123206376
Jan 15 18:56:01 judy kernel: [ 6763.948368] type=1502 audit(123206376
Jan 15 18:56:01 judy hpijs: io/hpmud/musb.c 135: unable get_string_
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/
=======
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/
hp-check[7241]: info: :[dirs]
run = /var/run
cupsbackend = /usr/lib/
ppd = /usr/share/
doc = /usr/share/
drv = /usr/share/cups/drv
ppdbase = /usr/share/
home = /usr/share/hplip
cupsfilter = /usr/lib/
icon = no
[last_used]
device_uri = hp:/usb/
[hplip]
version = 2.8.12
[configure]
foomatic-
qt4 = yes
doc-build = yes
qt3 = yes
cups11-build = no
gui-build = yes
internal-tag = 2.8.12.26
foomatic-
foomatic-
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/
hp-check[7241]: info: :[last_used]
printer_name = Photosmart_D7500
working_dir = /home/digger
device_uri = hp:/usb/
[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/
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/
hp-check[7241]: info: :PPD: /etc/cups/
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.
error: Not found. SANE backend 'hpaio' NOT properly setup (needs to be added to /etc/sane.
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/
hp-check[7241]: info: : Device node: /dev/bus/
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://
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: