Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350065 - app-pda/usbmuxd: usbmux-user needs to be member of the plugdev group
Summary: app-pda/usbmuxd: usbmux-user needs to be member of the plugdev group
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo PDA project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 18:46 UTC by Felix Leimbach
Modified: 2011-11-06 17:57 UTC (History)
0 users

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 Felix Leimbach 2010-12-29 18:46:37 UTC
The usbmux user created by app-pda/usbmuxd needs to be a member of the plugdev group.

When an iphone is plugged in then usbmuxd is started by the rule in: /lib/udev/rules.d/85-usbmuxd.rules

It is started as such: /usr/sbin/usbmuxd -u -U usbmux
However usbmuxd can't communicate with the iphone (for example "ideviceinstaller -l" fails claiming no iphone is connected).

Usbmuxd logs the reason to its stderr:
[19:39:16.169][4] Found new device with v/p 05ac:1297 at 2-3
libusb couldn't open USB device /dev/bus/usb/002/003: Permission denied.
libusb requires write access to USB device nodes.

Permission look like this:
# ll /dev/bus/usb/002/003 
crw-rw-r-- 1 root plugdev 189, 130 Dec 29 19:39 /dev/bus/usb/002/003

So this fixes the problem and should be done by the ebuild:
usermod -a -G plugdev usbmux

Reproducible: Always

Steps to Reproduce:
Comment 1 James Broadhead 2011-11-06 17:48:19 UTC
This is fixed and should be closed.

$ grep newuser /usr/portage/app-pda/usbmuxd/usbmuxd-1.0.*.ebuild 

/usr/portage/app-pda/usbmuxd/usbmuxd-1.0.4.ebuild:	
    enewuser usbmux -1 -1 -1 "usb,plugdev"
/usr/portage/app-pda/usbmuxd/usbmuxd-1.0.7.ebuild:	
    enewuser usbmux -1 -1 -1 "usb,plugdev"
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-11-06 17:57:48 UTC
(In reply to comment #1)
> This is fixed and should be closed.
> 
> $ grep newuser /usr/portage/app-pda/usbmuxd/usbmuxd-1.0.*.ebuild 
> 
> /usr/portage/app-pda/usbmuxd/usbmuxd-1.0.4.ebuild:    
>     enewuser usbmux -1 -1 -1 "usb,plugdev"
> /usr/portage/app-pda/usbmuxd/usbmuxd-1.0.7.ebuild:    
>     enewuser usbmux -1 -1 -1 "usb,plugdev"

I suspected that earlier.   Thanks for verifying.   Closed.