Re: USB Device Permissions In Fedora 11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/16/2009 12:57 AM, Wolfgang S. Rupprecht wrote:
Robert L Cochran<cochranb@xxxxxxxxxxxxx>  writes:
Having to do this chmod step annoys me. Is there some way to automate the detection and setting of permissions on the device such that everything is done correctly a moment or so after I connect the Blackberry over USB?

You can put rules down in /etc/udev/ruled.d/ and have them fire when the
appropriate device is plugged in.    Here is one that I have for my gps:

/etc/udev/rules.d/55-wsrcc-hotplug.rules:

# SIRF-III usb gps (Globalstar bu-XXX)
#
# added by wsr 2006-05-02
# /sys/devices/pci0000:00/0000:00:13.1/usb3/3-2
# manufacturer="Prolific Technology Inc."
# idProduct=2303
# idVendor=067b
# version=" 1.10"
# product=USB-Serial Controller
# add this too??
# SYSFS{idVendor}=="067b"
KERNEL=="ttyUSB*", SYSFS{idProduct}=="2303", SYMLINK+="gps" GROUP="staff" MODE="
0666"

It takes a bit of playing with "lsusb -v" to figure out what unique
product or vendor name you can latch onto.  Once you figure that out you
can chmod the device or even make a symlink to have a generic name you
can access it with.

-wolfgang


This should be done with ConsoleKit and HAL... MODE="0666" will make it writable by _every_ user on your computer, while it should only be writable by the actual console user, plugging it in.

Have a look at /usr/share/hal/fdi/policy/* and watch out for "<merge key="access_control....."

--
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux