access permissions for udev / usb device
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
Quoted 2 lines · Sarah Messer
My base problem is that I can access a USB device (Tektronix TDS 2014B oscilloscope) only as root.
...
Quoted 4 lines
the device & endpoints are added to GID00 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
Quoted 23 lines
Quoted 1 line
My base problem is that I can access a USB device
(Tektronix TDS
Quoted 1 line
2014B oscilloscope) only as root.
...
Quoted 1 line
the device & endpoints are added to GID=1000 w/
permissions 664
Quoted 1 line
(illustrated below), but this still does not allow
non-root users to
Quoted 1 line
actually control the device. (I get an
"Operation not permitted"
Quoted 1 line
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):
Quoted 6 lines
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
Quoted 187 lines · Sujit Karataparambil
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,
SujitQuoted 170 lines · Sarah Messer
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/messagessaid 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 (GID00) 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/messagesto say the device & endpoints are added to GID00 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/messagessegment 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, idVendor99, idProduct68 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', major9, minor16, mode64, uid=0, gid00 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, mode64, uid=0, gid00 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 , mode64, uid=0, gid00 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!, mode64, uid=0, gid00 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", mode64, uid=0, gid00 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] exitwith 0, 0 seconds old
Quoted 1 line · Sarah Messer
Adding the RUN+= commands doesn't seem to have made a difference.
...
Quoted 2 lines
TO answer your other questions, the low-level interface to the usb port is through libusb-0.1.12.
...
Quoted 7 lines
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