5
votes
3answers
1k views

How can I create a udev rule to mount a USB drive read only?

I'm trying to set a particular USB drive to always mount read only. If I plug it in, it is seen as sdb with a single partition, sdb1. Here are some relevant udevadm lines (not the entire output of ...
0
votes
2answers
433 views

Allow non-root user to read/write /dev files

In my /dev folder, I would like the following files to be user readable and writable: /dev/ttyUSB0 /dev/gpib0 How do I do this without using chgrp? I can edit /etc/udev/rules.d but I do not know ...
1
vote
1answer
82 views

udev GROUP and MODE assignments on symbolic link have no effect

I'm trying to connect my velleman k8055 board per usb to my pc. For this I have the udev rule SUBSYSTEM !="usb_device", ACTION !="add", GOTO="velleman_rules_end" ATTRS{idVendor}=="10cf", ...
2
votes
0answers
2k views

Understanding udev rules and permissions in libusb

I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help. Finally I solved the ...
5
votes
2answers
3k views

Permanently changing the ownership (or group) of LVM volume

How can I permanently change the ownership (or at least the group) of a LVM volume? I figured that I have to use udev, but I don't know how the rule should look like? Let's say I want to change the ...
4
votes
1answer
753 views

Change permissions for LEDs (e.g. ThinkLight) with udev

/edit/ Getting the question more generic: How can I change the permissions to alter the state of a LED/light using udev? \edit\ I've got a Thinkpad and would like to use the ThinkLight (the ...