Fw: Fw: access permissions for udev / usb device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 14, 2008 at 12:48 PM, Sujit Karataparambil
<sjt.kar@xxxxxxxxx> 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@xxxxxxxxx> 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=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
>>
>>
>>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux