usb /proc/file permissions control

Matthew Flaschen matthew.flaschen at gatech.edu
Fri Aug 31 01:25:48 UTC 2007


jack craig wrote:

> i want these files created with 666 just for the devil of it... ;-)

A better approach is to give access to a group, then add yourself to the
group.  For example, I use the following code in a udev file
(/etc/udev/rules.d/60-cell.rules):

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="cell_rules_end"
# LG Phone
SYSFS{idVendor}=="1004", SYSFS{idProduct}=="6000", GROUP="cellusers",
MODE="0660"
LABEL="cell_rules_end"

Of course, you'll need to find the idVendor and idProduct or other
identifying characteristics of the device (and change the names to make
them more appropriate).

Then, add yourself to the cell (or whatever) group.

Matt Flaschen




More information about the fedora-list mailing list