View previous topic :: View next topic |
Author |
Message |
sleepy boy n00b
Joined: 03 May 2006 Posts: 29 Location: Bruges, Belgium, earth
|
Posted: Wed Feb 27, 2008 12:04 pm Post subject: Udev user rights |
|
|
This is kind of a weird problem, there are several devices that i want to fully control as a normal user(usbdisks, ipod, .....)
Now the problem is, udev makes the GROUP privileges readonly(didn't do that in old versions???), and i need write access on these:
Code: | brw-r----- 1 root disk 8, 16 Feb 27 11:31 /dev/sdb
brw-r----- 1 root disk 8, 17 Feb 27 11:31 /dev/sdb1
brw-r----- 1 root plugdev 8, 18 Feb 27 11:31 /dev/sdb2
brw-r----- 1 root disk 8, 19 Feb 27 11:31 /dev/sdb3
brw-r----- 1 root disk 8, 32 Feb 27 10:34 /dev/sdc
brw-r----- 1 root plugdev 8, 33 Feb 27 10:34 /dev/sdc1
|
How can i make the group privileges +rw permanently?
using "chmod 660" has no use, since i'd need to run it everytime I plugin a disk/device
tnx in advance |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Feb 27, 2008 12:30 pm Post subject: |
|
|
This is what *custom* udev rules are for, e.g /etc/udev/rules.d/91-local.rules
Code: | KERNEL=="sd*", GROUP="whateveryouwant", MODE="0660" |
|
|
Back to top |
|
|
sleepy boy n00b
Joined: 03 May 2006 Posts: 29 Location: Bruges, Belgium, earth
|
Posted: Wed Feb 27, 2008 1:27 pm Post subject: |
|
|
tnx
I know a *little* bit about udev rules, but not that one _________________ To be or not to be, it's not a question. It's a choice |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Feb 27, 2008 1:32 pm Post subject: |
|
|
The trick is to see how udev itself does things.
Code: | grep sd /etc/udev/rules.d/* |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|