You are not logged in.

#1 2005-09-15 01:39:17

Nautivus
Member
Registered: 2003-10-04
Posts: 22

xfce not saving /dev/hdb chmod changes [Solved]

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

#2 2005-09-15 06:52:45

epo
Member
From: Romania , Iasi
Registered: 2005-06-06
Posts: 20

Re: xfce not saving /dev/hdb chmod changes [Solved]

Check out /etc/udev/permissions.d/udev.permissions and look for "optical devices".
Whatever ownership and permissions you set there should be preserved.

Offline

#3 2005-09-15 11:50:16

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: xfce not saving /dev/hdb chmod changes [Solved]

epo wrote:

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

#4 2005-09-15 12:14:03

epo
Member
From: Romania , Iasi
Registered: 2005-06-06
Posts: 20

Re: xfce not saving /dev/hdb chmod changes [Solved]

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

#5 2005-09-16 04:05:28

Nautivus
Member
Registered: 2003-10-04
Posts: 22

Re: xfce not saving /dev/hdb chmod changes [Solved]

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

Board footer

Powered by FluxBB