Mailinglist Archive: opensuse-bugs (10598 mails)

< Previous Next >
[Bug 542473] Printer communication error after sucessful initial installation
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 1 Oct 2009 01:26:36 -0600
  • Message-id: <20091001072636.182D8CC7CF@xxxxxxxxxxxxxxxxxxxxxx>
http://bugzilla.novell.com/show_bug.cgi?id=542473

User jsmeix@xxxxxxxxxx added comment
http://bugzilla.novell.com/show_bug.cgi?id=542473#c5


Johannes Meixner <jsmeix@xxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 - None |P3 - Medium
Status|NEW |NEEDINFO
Info Provider| |tvrtko@xxxxxxxxxxx




--- Comment #5 from Johannes Meixner <jsmeix@xxxxxxxxxx> 2009-10-01 01:26:32
MDT ---
On my workstation with hplip-3.9.8 installed
your HP DeskJet 840c with UDB ID 03f0:0604 (see comment #0)
is listed both

in /etc/udev/rules.d/55-hpmud.rules
(long lines are shown wrapped only here):
---------------------------------------------------------------------
# Check for Deskjet products (0x03f0xx04).
ATTR{idVendor}=="03f0", ATTR{idProduct}=="??04", OWNER="root",
GROUP="lp", MODE="664", ENV{sane_hpaio}="yes"
---------------------------------------------------------------------
so that the device node file should be created by udev
with this default permissions
crw-rw-r-- 1 root lp ... /dev/bus/usb/123/456

and in /usr/share/hal/fdi/information/20thirdparty/70-hpmud.fdi
------------------------------------------------------------------------
<match key="info.subsystem" string="usb">
<match key="usb.vendor_id" int="0x03f0">
<match key="usb.product_id" int="0x0604">
<append key="info.capabilities" type="strlist">scanner</append>
</match>
</match>
</match>
------------------------------------------------------------------------
so that HAL should add an ACL to the device node file
so that additionally the user who is localy logged in
gets write permissions.
FYI:
If you wonder why I use the "scanner" capability
even for a printer, see
https://bugzilla.novell.com/show_bug.cgi?id=469721#c3

What does
hal-find-by-capability --capability scanner
show and
what does
hal-find-by-property --key access_control.type --string scanner
show?
On my workstation both commands show the udev UDIs of all
my USB printers and scanners:
---------------------------------------------------------------------
# lsusb
Bus 002 Device 002: ID 04a9:220e Canon, Inc. CanoScan N1240U/LiDE 30
Bus 001 Device 009: ID 03f0:0417 Hewlett-Packard LaserJet 1200 series

# hal-find-by-capability --capability scanner
/org/freedesktop/Hal/devices/usb_device_4a9_220e_noserial_if0
/org/freedesktop/Hal/devices/usb_device_3f0_417_00XXXXXXXXXX_if0

# hal-find-by-property --key access_control.type --string scanner
/org/freedesktop/Hal/devices/usb_device_4a9_220e_noserial_if0
/org/freedesktop/Hal/devices/usb_device_3f0_417_00XXXXXXXXXX_if0
---------------------------------------------------------------------

In particular because of the latter HAL should add an ACL
to the device node file which matches to the udev UDI
so that additionally the user who is localy logged in
gets write permissions.

What is the output of
getfacl /dev/bus/usb/123/456
where 123 and 456 must be replaced with your current
actual values according to the output of the "lsusb"
after you logged in locally?

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >