linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: access permissions for udev / usb device
@ 2008-08-13 15:39 Sarah Messer
  2008-08-13 15:51 ` Jim Paris
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sarah Messer @ 2008-08-13 15:39 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 9091 bytes --]

Guten Tag,

sorry for the possible newbie questions, but I'm getting stuck. 

My base problem is that I can access a USB device (Tektronix TDS 2014B oscilloscope) only as root.  Initially "udevcontrol log_priority=err"'s output to /var/log/messages said that the device & endpoints were being added to group root with (IIRC) permissions 660.  I tried a mod to 55-libsane.rules to add them to group usb (GID=1000) w/ permissions 664, but this seemed to have no effect.  Copying the relevant lines to a new file, 10-libsane.rules (attached), causes /var/log/messages to say the device & endpoints are added to GID=1000 w/ permissions 664 (illustrated below), but this still does not allow non-root users to actually control the device.  (I get an "Operation not permitted" error
 if-and-only-if I lack root access.)  The non-root user ("sarah") is confirmed as a member of group usb, which is confirmed as having GID 1000.

I don't seem to have udevadm on my system... although udevtest is available and displays the paths as you noted.


I'm running openSUSE 10.3 with linux kernel 2.6.22.18-0.2.  SUSE
10.3's most recent official udev version is 114-19.  I started to
install udev 126, but got several hundred conflict messages during
dependency-checking and got scared.

Any advice on trouble-shooting?

Thanks.
-Sarah

/var/log/messages segment generated at device power-on:

Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: new full speed USB device using ehci_hcd and address 61
Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: new device found, idVendor=0699, idProduct=0368
Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: new device strings: Mfr=1, Product=2, SerialNumber=3
Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: Product: Tektronix TDS2014B
Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: Manufacturer: Tektronix, Inc.
Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: SerialNumber: C038849
Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: configuration #1 chosen from 1 choice
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2336 forked, pid [26966], 'add' 'usb', 0 seconds old
Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_rules_get_name: rule applied, '3-1.6'
 becomes 'bus/usb/003/061'
Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_db_get_device: no db file to read /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6: No such file or directory
Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_node_add: creating device node '/dev/bus/usb/003/061', major=189, minor=316, mode=0664, uid=0, gid=1000
Aug 13 10:50:22 Johnny5 udevd-event[26966]: name_index: creating index: '/dev/.udev/names/bus\x2fusb\x2f003\x2f061/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6'
Aug 13 10:50:22 Johnny5 udevd-event[26966]: pass_env_to_socket: passed 319 bytes to socket '/org/freedesktop/hal/udev_event', 
Aug 13 10:50:22 Johnny5 udevd-event[26966]: pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor', 
Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_event_run: seq 2336 finished with 0
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2336, pid
 [26966] exit with 0, 0 seconds old
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2337 forked, pid [26967], 'add' 'usb_endpoint', 0 seconds old
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2338 forked, pid [26968], 'add' 'usb', 0 seconds old
Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_rules_get_name: no node name set, will use kernel name ''
Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_db_get_device: no db file to read /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2fusb_endpoint\x2fusbdev3.61_ep00: No such file or directory
Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_node_add: creating device node '/dev/usbdev3.61_ep00', major=254, minor=19, mode=0664, uid=0, gid=1000
Aug 13 10:50:22 Johnny5 udevd-event[26967]: name_index: creating index:
 '/dev/.udev/names/usbdev3.61_ep00/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2fusb_endpoint\x2fusbdev3.61_ep00'
Aug 13 10:50:22 Johnny5 udevd-event[26967]: pass_env_to_socket: passed 285 bytes to socket '/org/freedesktop/hal/udev_event', 
Aug 13 10:50:22 Johnny5 udevd-event[26967]: pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor', 
Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_event_run: seq 2337 finished with 0
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2337, pid [26967] exit with 0, 0 seconds old
Aug 13 10:50:22 Johnny5 udevd-event[26968]: run_program: '/sbin/modprobe usb:v0699p0368d0042dc00dsc00dp00icFEisc03ip01'
Aug 13 10:50:22 Johnny5 udevd-event[26968]: run_program: '/sbin/modprobe' (stderr) 'FATAL: Module usb:v0699p0368d0042dc00dsc00dp00icFEisc03ip01 not found.'
Aug 13 10:50:22 Johnny5 udevd-event[26968]: run_program: '/sbin/modprobe' returned with status 1
Aug 13
 10:50:22 Johnny5 udevd-event[26968]: pass_env_to_socket: passed 344 bytes to socket '/org/freedesktop/hal/udev_event', 
Aug 13 10:50:22 Johnny5 udevd-event[26968]: pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor', 
Aug 13 10:50:22 Johnny5 udevd-event[26968]: udev_event_run: seq 2338 finished with 0
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2338, pid [26968] exit with 0, 0 seconds old
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2339 forked, pid [26970], 'add' 'usb_endpoint', 0 seconds old
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2340 forked, pid [26971], 'add' 'usb_endpoint', 0 seconds old
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2341 forked, pid [26972], 'add' 'usb_endpoint', 0 seconds old
Aug 13 10:50:22 Johnny5 udevd-event[26970]: udev_rules_get_name: no node name set, will use kernel name ''
Aug 13 10:50:22 Johnny5 udevd-event[26970]:
 udev_db_get_device: no db file to read /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep85: No such file or directory
Aug 13 10:50:22 Johnny5 udevd-event[26970]: udev_node_add: creating device node '/dev/usbdev3.61_ep85', major=254, minor=20, mode=0664, uid=0, gid=1000
Aug 13 10:50:22 Johnny5 udevd-event[26970]: name_index: creating index: '/dev/.udev/names/usbdev3.61_ep85/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep85'
Aug 13 10:50:22 Johnny5 udevd-event[26970]: pass_env_to_socket: passed 305 bytes to socket '/org/freedesktop/hal/udev_event', 
Aug 13 10:50:22 Johnny5 udevd-event[26970]: pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor', 
Aug 13 10:50:22 Johnny5 udevd-event[26970]: udev_event_run: seq 2339 finished with 0
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq
 2339, pid [26970] exit with 0, 0 seconds old
Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_rules_get_name: no node name set, will use kernel name ''
Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_db_get_device: no db file to read /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep06: No such file or directory
Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_node_add: creating device node '/dev/usbdev3.61_ep06', major=254, minor=21, mode=0664, uid=0, gid=1000
Aug 13 10:50:22 Johnny5 udevd-event[26971]: name_index: creating index: '/dev/.udev/names/usbdev3.61_ep06/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep06'
Aug 13 10:50:22 Johnny5 udevd-event[26971]: pass_env_to_socket: passed 305 bytes to socket '/org/freedesktop/hal/udev_event', 
Aug 13 10:50:22 Johnny5 udevd-event[26971]:
 pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor', 
Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_event_run: seq 2340 finished with 0
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2340, pid [26971] exit with 0, 0 seconds old
Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_rules_get_name: no node name set, will use kernel name ''
Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_db_get_device: no db file to read /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep87: No such file or directory
Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_node_add: creating device node '/dev/usbdev3.61_ep87', major=254, minor=22, mode=0664, uid=0, gid=1000
Aug 13 10:50:22 Johnny5 udevd-event[26972]: name_index: creating index:
 '/dev/.udev/names/usbdev3.61_ep87/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep87'
Aug 13 10:50:22 Johnny5 udevd-event[26972]: pass_env_to_socket: passed 305 bytes to socket '/org/freedesktop/hal/udev_event', 
Aug 13 10:50:22 Johnny5 udevd-event[26972]: pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor', 
Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_event_run: seq 2341 finished with 0
Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2341, pid [26972] exit with 0, 0 seconds old


      

[-- Attachment #2: 10-libsane.rules --]
[-- Type: application/octet-stream, Size: 1993 bytes --]

# This file was automatically created based on description files (*.desc)
# by sane-desc 3.3 from sane-backends 1.0.18-cvs on Thu Aug  2 09:15:29 2007
#
# The automatically created file was manually modified
# for openSUSE 10.3 on Fri Aug 03 2007 by jsmeix@suse.de as follows:
# All GROUP="scanner" are replaced by GROUP="lp" and
# SUBSYSTEM=="usb" is added before the SUBSYSTEM=="usb_device" test
# but the latter is kept for backward compatibility.
# The reasons are:
# There is no group "scanner" in /etc/group for openSUSE 10.3.
# For all-in-one devices (i.e. printer + scanner, e.g. "EPSON Stylus" devices)
# the group must be "lp" so that the CUPS usb backend which runs
# as user "lp" (who is member of the group "lp") can send printing data
# to the printer unit (i.e. the printer interface of the USB device).
# It is sufficiently secure and reasonable easy to use by default
# the same group "lp" for printers and scanners because both kind of devices
# usually require physical user access (to get the printed paper or
# to place a paper on the scanner) so that both kind of devices
# should usually require the same kind of security.
# Regarding SUBSYSTEM=="usb" see the Novell/Suse Bugzilla bugs
# https://bugzilla.novell.com/show_bug.cgi?id=294161
#
# udev rules file for supported USB devices
#
# To add a USB device, add a rule to the list below between the
# LABEL="libsane_rules_begin" and LABEL="libsane_rules_end" lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# The following list already contains a lot of scanners. If your scanner
# isn't mentioned there, add it as explained above and mail the entry to
# the sane-devel mailing list (sane-devel@lists.alioth.debian.org).
#
# Tektronix TDS 2000 series
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0699", SYSFS{idProduct}=="0368", GROUP="usb", MODE="0664"
ACTION=="add", ATTRS{idVendor}=="0699", ATTRS{idProduct}=="0368", GROUP="usb", MODE="0664"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fw: access permissions for udev / usb device
  2008-08-13 15:39 Fw: access permissions for udev / usb device Sarah Messer
@ 2008-08-13 15:51 ` Jim Paris
  2008-08-13 18:27 ` Sarah Messer
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jim Paris @ 2008-08-13 15:51 UTC (permalink / raw)
  To: linux-hotplug

Sarah Messer wrote:

> My base problem is that I can access a USB device (Tektronix TDS
> 2014B oscilloscope) only as root.
...
> the device & endpoints are added to GID\x1000 w/ permissions 664
> (illustrated below), but this still does not allow non-root users to
> actually control the device.  (I get an "Operation not permitted"
> error

How are you trying to control the device?  What software and what
interface is it using?  If (for example) you're using an older version
of libusb that uses /proc/bus/usb, you'll have problems because udev
only sets permissions on /dev/bus/usb.  You could use a rule similar
to this to set it in both places ($ENV{DEVICE} points to
/proc/bus/usb):

ATTRS{idVendor}="04d8", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}="04d8", RUN+="/bin/chmod 664 $ENV{DEVICE}"
ATTRS{idVendor}="04d8", RUN+="/bin/chgrp plugdev $ENV{DEVICE}"

-jim

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fw: access permissions for udev / usb device
  2008-08-13 15:39 Fw: access permissions for udev / usb device Sarah Messer
  2008-08-13 15:51 ` Jim Paris
@ 2008-08-13 18:27 ` Sarah Messer
  2008-08-14 12:32 ` Fw: " Sujit Karataparambil
  2008-08-17  5:48 ` Jim Paris
  3 siblings, 0 replies; 5+ messages in thread
From: Sarah Messer @ 2008-08-13 18:27 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]

> > My base problem is that I can access a USB device
> (Tektronix TDS
> > 2014B oscilloscope) only as root.
> ...
> > the device & endpoints are added to GID=1000 w/
> permissions 664
> > (illustrated below), but this still does not allow
> non-root users to
> > actually control the device.  (I get an
> "Operation not permitted"
> > error
> 
> How are you trying to control the device?  What software
> and what
> interface is it using?  If (for example) you're using
> an older version
> of libusb that uses /proc/bus/usb, you'll have problems
> because udev
> only sets permissions on /dev/bus/usb.  You could use a
> rule similar
> to this to set it in both places ($ENV{DEVICE} points to
> /proc/bus/usb):
> 
> ATTRS{idVendor}=="04d8", MODE="0664",
> GROUP="plugdev"
> ATTRS{idVendor}=="04d8", RUN+="/bin/chmod
> 664 $ENV{DEVICE}"
> ATTRS{idVendor}=="04d8", RUN+="/bin/chgrp
> plugdev $ENV{DEVICE}"

Adding the RUN+= commands doesn't seem to have made a difference.  Before this most-recent change, the file in /dev/bus/usb was assigned to root-usb-664 and the file in /proc/bus/usb was assigned to root-root-644.  After the change, ll confirms the permissions & group-assignment of the relevant files were altered (root-usb-664 for both devices).  I'm attaching the modified 10-libsane.rules; my copy of 55-libsane.rules contains a similar section where the "Tektronix" code was before.

TO answer your other questions, the low-level interface to the usb port is through libusb-0.1.12.  That's being wrapped by pyusb-0.4.1, and my code is  actually written in Python 2.5.1.  I've tried skipping the Python intermediary, but something gets lost in conversion when I try to write up the control code in C.  I get intermittent "timeout" errors as both root and non-root.   The timeout errors occur with similar frequencies on two different machines and are frustratingly difficult to isolate / predict / control  (I've some descriptions on them over in the libusb-devel archives if anyone's curious...)

The current (permissions) difficulty seems separate - it appears on one machine (SUSE 10.3, udev 114, Python 2.5.1), but not on another one (SUSE 10.0, udev 068, Python 2.4.1).  The versions of libusb and (I think) pyusb are the same on both machines.  The permissions difficulty is also entirely reproducible.

Any ides on how I can isolate & fix its cause?

Thanks.
-Sarah



      

[-- Attachment #2: 10-libsane.rules --]
[-- Type: application/octet-stream, Size: 1114 bytes --]

# The automatically created file was manually modified
# for openSUSE 10.3 on Fri Aug 03 2007 by jsmeix@suse.de as follows:
# SUBSYSTEM=="usb" is added before the SUBSYSTEM=="usb_device" test
# but the latter is kept for backward compatibility.
# Regarding SUBSYSTEM=="usb" see the Novell/Suse Bugzilla bugs
# https://bugzilla.novell.com/show_bug.cgi?id=294161
#
# udev rules file for supported USB devices
#
# To add a USB device, add a rule to the list below between the
# LABEL="libsane_rules_begin" and LABEL="libsane_rules_end" lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# Tektronix TDS 2000 series
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0699", SYSFS{idProduct}=="0368", GROUP="usb", MODE="0664"
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0699", SYSFS{idProduct}=="0368", RUN+="/bin/chmod 664 $ENV{DEVICE}"
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0699", SYSFS{idProduct}=="0368", RUN+="/bin/chgrp usb $ENV{DEVICE}"
ACTION=="add", ATTRS{idVendor}=="0699", ATTRS{idProduct}=="0368", GROUP="usb", MODE="0664"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Fw: Fw: access permissions for udev / usb device
  2008-08-13 15:39 Fw: access permissions for udev / usb device Sarah Messer
  2008-08-13 15:51 ` Jim Paris
  2008-08-13 18:27 ` Sarah Messer
@ 2008-08-14 12:32 ` Sujit Karataparambil
  2008-08-17  5:48 ` Jim Paris
  3 siblings, 0 replies; 5+ messages in thread
From: Sujit Karataparambil @ 2008-08-14 12:32 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Aug 14, 2008 at 12:48 PM, Sujit Karataparambil
<sjt.kar@gmail.com> wrote:
> Sarah,
>
> I think Hot Plug devices are added dynamically, they are not given
> permission on the basis of
> static rules.
>
> I found something interesting on sf.net.
>
> http://gphoto.sourceforge.net/doc/manual/permissions-usb.html
>
> Thanks,
> Sujit
>
>
> On 8/13/08, Sarah Messer <ikustosu@yahoo.com> wrote:
>>
>> Guten Tag,
>>
>> sorry for the possible newbie questions, but I'm getting stuck.
>>
>> My base problem is that I can access a USB device (Tektronix TDS 2014B
>> oscilloscope) only as root.  Initially "udevcontrol log_priority=err"'s
>> output to /var/log/messages said that the device & endpoints were being
>> added to group root with (IIRC) permissions 660.  I tried a mod to
>> 55-libsane.rules to add them to group usb (GID\x1000) w/ permissions 664, but
>> this seemed to have no effect.  Copying the relevant lines to a new file,
>> 10-libsane.rules (attached), causes /var/log/messages to say the device &
>> endpoints are added to GID\x1000 w/ permissions 664 (illustrated below), but
>> this still does not allow non-root users to actually control the device.  (I
>> get an "Operation not permitted" error
>> if-and-only-if I lack root access.)  The non-root user ("sarah") is
>> confirmed as a member of group usb, which is confirmed as having GID 1000.
>>
>> I don't seem to have udevadm on my system... although udevtest is
>> available and displays the paths as you noted.
>>
>>
>> I'm running openSUSE 10.3 with linux kernel 2.6.22.18-0.2.  SUSE
>> 10.3's most recent official udev version is 114-19.  I started to
>> install udev 126, but got several hundred conflict messages during
>> dependency-checking and got scared.
>>
>> Any advice on trouble-shooting?
>>
>> Thanks.
>> -Sarah
>>
>> /var/log/messages segment generated at device power-on:
>>
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: new full speed USB device using
>> ehci_hcd and address 61
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: new device found,
>> idVendor\x0699, idProduct\x0368
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: new device strings: Mfr=1,
>> Product=2, SerialNumber=3
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: Product: Tektronix TDS2014B
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: Manufacturer: Tektronix, Inc.
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: SerialNumber: C038849
>> Aug 13 10:50:22 Johnny5 kernel: usb 3-1.6: configuration #1 chosen from 1
>> choice
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2336 forked, pid
>> [26966], 'add' 'usb', 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_rules_get_name: rule
>> applied, '3-1.6'
>> becomes 'bus/usb/003/061'
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_db_get_device: no db file
>> to read
>> /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6:
>> No such file or directory
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_node_add: creating device
>> node '/dev/bus/usb/003/061', major\x189, minor16, mode\x0664, uid=0,
>> gid\x1000
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: name_index: creating index:
>> '/dev/.udev/names/bus\x2fusb\x2f003\x2f061/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6'
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: pass_env_to_socket: passed 319
>> bytes to socket '/org/freedesktop/hal/udev_event',
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: pass_env_to_socket: passed -1
>> bytes to socket '/org/kernel/udev/monitor',
>> Aug 13 10:50:22 Johnny5 udevd-event[26966]: udev_event_run: seq 2336
>> finished with 0
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2336, pid
>> [26966] exit with 0, 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2337 forked, pid
>> [26967], 'add' 'usb_endpoint', 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2338 forked, pid
>> [26968], 'add' 'usb', 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_rules_get_name: no node
>> name set, will use kernel name ''
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_db_get_device: no db file
>> to read
>> /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2fusb_endpoint\x2fusbdev3.61_ep00:
>> No such file or directory
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_node_add: creating device
>> node '/dev/usbdev3.61_ep00', major%4, minor\x19, mode\x0664, uid=0, gid\x1000
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: name_index: creating index:
>>
>> '/dev/.udev/names/usbdev3.61_ep00/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2fusb_endpoint\x2fusbdev3.61_ep00'
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: pass_env_to_socket: passed 285
>> bytes to socket '/org/freedesktop/hal/udev_event',
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: pass_env_to_socket: passed -1
>> bytes to socket '/org/kernel/udev/monitor',
>> Aug 13 10:50:22 Johnny5 udevd-event[26967]: udev_event_run: seq 2337
>> finished with 0
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2337, pid [26967] exit
>> with 0, 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd-event[26968]: run_program: '/sbin/modprobe
>> usb:v0699p0368d0042dc00dsc00dp00icFEisc03ip01'
>> Aug 13 10:50:22 Johnny5 udevd-event[26968]: run_program: '/sbin/modprobe'
>> (stderr) 'FATAL: Module usb:v0699p0368d0042dc00dsc00dp00icFEisc03ip01 not
>> found.'
>> Aug 13 10:50:22 Johnny5 udevd-event[26968]: run_program: '/sbin/modprobe'
>> returned with status 1
>> Aug 13
>> 10:50:22 Johnny5 udevd-event[26968]: pass_env_to_socket: passed 344 bytes
>> to socket '/org/freedesktop/hal/udev_event',
>> Aug 13 10:50:22 Johnny5 udevd-event[26968]: pass_env_to_socket: passed -1
>> bytes to socket '/org/kernel/udev/monitor',
>> Aug 13 10:50:22 Johnny5 udevd-event[26968]: udev_event_run: seq 2338
>> finished with 0
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2338, pid [26968] exit
>> with 0, 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2339 forked, pid
>> [26970], 'add' 'usb_endpoint', 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2340 forked, pid
>> [26971], 'add' 'usb_endpoint', 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_event_run: seq 2341 forked, pid
>> [26972], 'add' 'usb_endpoint', 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]: udev_rules_get_name: no node
>> name set, will use kernel name ''
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]:
>> udev_db_get_device: no db file to read
>> /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep85:
>> No such file or directory
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]: udev_node_add: creating device
>> node '/dev/usbdev3.61_ep85', major%4, minor , mode\x0664, uid=0, gid\x1000
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]: name_index: creating index:
>> '/dev/.udev/names/usbdev3.61_ep85/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep85'
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]: pass_env_to_socket: passed 305
>> bytes to socket '/org/freedesktop/hal/udev_event',
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]: pass_env_to_socket: passed -1
>> bytes to socket '/org/kernel/udev/monitor',
>> Aug 13 10:50:22 Johnny5 udevd-event[26970]: udev_event_run: seq 2339
>> finished with 0
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq
>> 2339, pid [26970] exit with 0, 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_rules_get_name: no node
>> name set, will use kernel name ''
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_db_get_device: no db file
>> to read
>> /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep06:
>> No such file or directory
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_node_add: creating device
>> node '/dev/usbdev3.61_ep06', major%4, minor!, mode\x0664, uid=0, gid\x1000
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]: name_index: creating index:
>> '/dev/.udev/names/usbdev3.61_ep06/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep06'
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]: pass_env_to_socket: passed 305
>> bytes to socket '/org/freedesktop/hal/udev_event',
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]:
>> pass_env_to_socket: passed -1 bytes to socket '/org/kernel/udev/monitor',
>> Aug 13 10:50:22 Johnny5 udevd-event[26971]: udev_event_run: seq 2340
>> finished with 0
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2340, pid [26971] exit
>> with 0, 0 seconds old
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_rules_get_name: no node
>> name set, will use kernel name ''
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_db_get_device: no db file
>> to read
>> /dev/.udev/db/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep87:
>> No such file or directory
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_node_add: creating device
>> node '/dev/usbdev3.61_ep87', major%4, minor", mode\x0664, uid=0, gid\x1000
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: name_index: creating index:
>>
>> '/dev/.udev/names/usbdev3.61_ep87/\x2fdevices\x2fpci0000:00\x2f0000:00:1d.7\x2fusb3\x2f3-1\x2f3-1.6\x2f3-1.6:1.0\x2fusb_endpoint\x2fusbdev3.61_ep87'
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: pass_env_to_socket: passed 305
>> bytes to socket '/org/freedesktop/hal/udev_event',
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: pass_env_to_socket: passed -1
>> bytes to socket '/org/kernel/udev/monitor',
>> Aug 13 10:50:22 Johnny5 udevd-event[26972]: udev_event_run: seq 2341
>> finished with 0
>> Aug 13 10:50:22 Johnny5 udevd[5927]: udev_done: seq 2341, pid [26972] exit
>> with 0, 0 seconds old
>>
>>
>>
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fw: access permissions for udev / usb device
  2008-08-13 15:39 Fw: access permissions for udev / usb device Sarah Messer
                   ` (2 preceding siblings ...)
  2008-08-14 12:32 ` Fw: " Sujit Karataparambil
@ 2008-08-17  5:48 ` Jim Paris
  3 siblings, 0 replies; 5+ messages in thread
From: Jim Paris @ 2008-08-17  5:48 UTC (permalink / raw)
  To: linux-hotplug

Sarah Messer wrote:
> Adding the RUN+= commands doesn't seem to have made a difference.
...
> TO answer your other questions, the low-level interface to the usb
> port is through libusb-0.1.12.
...
> The current (permissions) difficulty seems separate - it appears on
> one machine (SUSE 10.3, udev 114, Python 2.5.1), but not on another
> one (SUSE 10.0, udev 068, Python 2.4.1).  The versions of libusb and
> (I think) pyusb are the same on both machines.  The permissions
> difficulty is also entirely reproducible.
>
> Any ides on how I can isolate & fix its cause?

libusb-0.1.12 should default to /dev/bus/usb so the lines I suggested
won't make a difference.  You could try something like strace to see
what operation is actually failing when run as a normal user.

-jim

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-17  5:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13 15:39 Fw: access permissions for udev / usb device Sarah Messer
2008-08-13 15:51 ` Jim Paris
2008-08-13 18:27 ` Sarah Messer
2008-08-14 12:32 ` Fw: " Sujit Karataparambil
2008-08-17  5:48 ` Jim Paris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).