Removable media permissions on CentOS
I followed this great primer to udev:
So my aim is to control perms on devices mounted.
So my understanding is I could use DRIVERS=="usb-storage" its its in a parent device.
so I created this:
SUBSYSTEM=="block", DRIVERS=="usb-storage", MODE="0600"
But then I get:
If I change it to DRIVER is doesn't complain, but of course, doesn't work.
2. The device is being created with these perms:
This is with a KDE desktop ontop.
Thanks for reading.
I wasn't wrong thinking it was a tough one :)
I am going to venture more into this today. Fingers crossed.
So now I think its controlled by hal.
When I saw this in the logs:
hald: mounted /dev/sdb1 on behalf of uid 1249
The former site looked promising and the default hal.conf file I had was much more open, allowing alot [on a default CentOS 5.3 install]
so I trimmed it down and also tried just copying and pasting the one from the article that was the restrictive one, but I could still mount a USB thumb drive.
So I am lost now. I even cut the hal.conf down even further, so minimal I thought it would break, but still able to mount as a simple user.
I did notice this in the logs:
userhelper: running '/usr/sbin/eject /dev/sdb1' with root privileges on behalf of 'btest'
But userhelper is from the usermode package which seems to only pertain to halting, shutting down and rebooting.
Damn, why is this so hard!
It looks like Fedora has gone to PolicyKit, so I can't get any help from there.
|All times are GMT -5. The time now is 12:41 PM.|