You are not logged in.
I have to change my cdrom permissions so I can run audio cds when logged as a user. My cd drive default permissions are the following:
lrwxrwxrwx root optical /dev/cdroms/cdrom0 ---> /dev/hdb
crw------- root root /dev/hdb
I have added my user to the optical group. But as you can see /dev/hdb is only readeable for root. I did a:
chmod u+r+w+x,g+r+x /dev/hdb
After that I was able to run my audio cd in xmms.
The problem is that my changes only last until I reboot.
I'm running xfce4 and I have enabled the session saving at logout.
Anyone knows how can I change the permissions so that them aren't reset
everytime I logout?
Sorry for my bad english.
Thanks in advance,
Nautivus
Offline
Check out /etc/udev/permissions.d/udev.permissions and look for "optical devices".
Whatever ownership and permissions you set there should be preserved.
Offline
Check out /etc/udev/permissions.d/udev.permissions and look for "optical devices".
Whatever ownership and permissions you set there should be preserved.
1) permissions.d isn't used anymore, rules.d is the right place now
2) optical devices should be owned by root, group optical, so adding your user to group optical should be enough with arch's default udev settings.
Offline
I was not aware of that :oops:
This new file looks a lot more cryptic to me.
Could you please explain where is the setting telling udev what are the default permissions?
Is there such a setting or is it compilled in?
As I can see it dose the job right, but I would like to know how.
Offline
Thanks for your suggestions. The problem was in the udev.permissions file. It had
two entries for the same drive.
#optical drives
cdroms/*:root:optical:0660 -->../hdb
#disk drives
hd*:root:disk:0660
That means that my user was in the correct group (I added him to the optical group),
but the udev.permissions file was overwriting the permissions of the optical group for
my /dev/cdroms/cdrom0 drive.
That was done in the hd* part of the udev file. I rebooted and check my default
permissions for my /dev/hdb and they were set for root and disk group only.
I just rewrote the hd*:root:disk:0660 to hda*:root:disk:0660 and added to the
optical disks section, hdb:root:optical:0660. That did the trick. Thanks for your help.
Offline