Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323329 - app-pda/usbmuxd-1.0.4: libusb couldn't open USB device
Summary: app-pda/usbmuxd-1.0.4: libusb couldn't open USB device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
: 323119 (view as bug list)
Depends on:
Blocks: 329765
  Show dependency tree
 
Reported: 2010-06-09 13:54 UTC by Łukasz Sowiński
Modified: 2010-07-29 20:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Sowiński 2010-06-09 13:54:59 UTC
According to /lib/udev/rules.d/85-usbmuxd.rules usbmuxd is started with
  /usr/sbin/usbmuxd -u -U usbmux
and 'id usbmux' shows 
  uid=113(usbmux) gid=85(usb) grupy=85(usb)
Yet I still get 
  libusb couldn't open USB device /dev/bus/usb/001/006: Permission denied.
  libusb requires write access to USB device nodes.

If -U is changed to -U my_user or omitted, everything works just fine.
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2010-06-09 15:51:53 UTC
*** Bug 323119 has been marked as a duplicate of this bug. ***
Comment 2 Łukasz Sowiński 2010-06-14 12:21:47 UTC
The problem can be solved by adding 'usbmux' user to 'plugdev' group.

The relevant ebuild's line is
   enewuser usbmux -1 -1 -1 "usb"
but simply adding ",plugdev" here doesn't seem to work for an already existing user.

(Thanks to 'toberonenz' from the Gentoo Forums)
Comment 3 Dave Arnold 2010-06-19 18:55:39 UTC
>The problem can be solved by adding 'usbmux' user to 'plugdev' group.

>The relevant ebuild's line is
>   enewuser usbmux -1 -1 -1 "usb"
>but simply adding ",plugdev" here doesn't seem to work for an already existing
>user.

usbmux must also belong to the usb group.  If added to both groups it works.

Comment 4 Pacho Ramos gentoo-dev 2010-07-29 20:30:19 UTC
+  29 Jul 2010; Pacho Ramos <pacho@gentoo.org> usbmuxd-1.0.4.ebuild,
+  metadata.xml:
+  usbmux user needs to be in plugdev group also as reported in bug #323329.
+  Chainsaw doesn't want to maintain this any longer.


But systems where the user is already created will probably need to manually add it to plugdev and usb groups manually