Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329331 - media-libs/libmtp-1.0.3: Strange ownership for mtp devices (udev rules)
Summary: media-libs/libmtp-1.0.3: Strange ownership for mtp devices (udev rules)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Kenneth Prugh (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 20:27 UTC by François Valenduc
Modified: 2011-02-05 05:59 UTC (History)
3 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 François Valenduc 2010-07-21 20:27:35 UTC
With libmtp-1.0.3, all udev rules are now like this:
ATTR{idVendor}=="041e", ATTR{idProduct}=="411f", SYMLINK+="libmtp-%k", MODE="660"

Therefore, only root can access mtp devices. This seems quite strange. Before, the mode was set to 666. Maybe a solution is this rule:
ATTR{idVendor}=="041e", ATTR{idProduct}=="411f", SYMLINK+="libmtp-%k", MODE="660" OWNER="root" GROUP="plugdev"

This implies that only member of the plugdev group have access to the device.


Reproducible: Always
Comment 1 Kenneth Prugh (RETIRED) gentoo-dev 2010-07-25 22:03:33 UTC
Ah, I hadn't noticed this. Seems libgphoto had been setting my devices to plugdev here.

See if -r1 fixes it.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-10-03 16:52:01 UTC
Another problem is with plugdev group. That group only exists when sys-apps/hal is installed. On systems without hal, udev moans about missing plugdev group on boot.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-10-03 17:48:02 UTC
(In reply to comment #2)
> Another problem is with plugdev group. That group only exists when sys-apps/hal
> is installed. On systems without hal, udev moans about missing plugdev group on
> boot.
> 

Fixed that.

+  03 Oct 2010; Samuli Suominen <ssuominen@gentoo.org>
+  libmtp-1.0.3-r1.ebuild:
+  Make sure plugdev group is there wrt #329331, Comment #2 by Lars Wendler.