Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Udev user rights
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sleepy boy
n00b
n00b


Joined: 03 May 2006
Posts: 29
Location: Bruges, Belgium, earth

PostPosted: Wed Feb 27, 2008 12:04 pm    Post subject: Udev user rights Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Feb 27, 2008 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
sleepy boy
n00b
n00b


Joined: 03 May 2006
Posts: 29
Location: Bruges, Belgium, earth

PostPosted: Wed Feb 27, 2008 1:27 pm    Post subject: Reply with quote

tnx :)

I know a *little* bit about udev rules, but not that one :D
_________________
To be or not to be, it's not a question. It's a choice :P
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Feb 27, 2008 1:32 pm    Post subject: Reply with quote

The trick is to see how udev itself does things.
Code:
grep sd /etc/udev/rules.d/*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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