Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 323329

Summary: app-pda/usbmuxd-1.0.4: libusb couldn't open USB device
Product: Gentoo Linux Reporter: Łukasz Sowiński <lukasz.sowinski>
Component: [OLD] UnspecifiedAssignee: Tony Vroon (RETIRED) <chainsaw>
Status: RESOLVED FIXED    
Severity: normal CC: d3arnold, pda
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 329765    

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