LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   permissions reset on reboot (https://www.linuxquestions.org/questions/fedora-35/permissions-reset-on-reboot-346416/)

trempel 07-25-2005 12:04 AM

permissions reset on reboot
 
I've noticed that permissions reset themselves when my computer is turned off. Each time I log on, i must alter the permissions of /dev/hdd (cd-rom) so that i can listen to a CD. I wanted to now if this is normal, and if there is something I can do so that when I later the permissions, they will still be the way I want them after I've rebooted.

thanks for any help.

johnson_steve 07-25-2005 12:14 AM

This is because you are using udev. when using udev nothing in /dev is actualy on your hard drive like it was with devfs so it goes away when you shut down and is created dynamacly at boot. you can ether go back to using devfs or set up some udev rules so your permissions are set corectly at boot.

this might help:
http://www.redhat.com/magazine/002dec04/features/udev/

pembo13 07-25-2005 12:16 AM

This sounds like a bug. I would suggest you upgrade to FC4.

linux-rulz 07-25-2005 03:11 PM

Quote:

This sounds like a bug. I would suggest you upgrade to FC4.
No, this isnt a bug, it is how udev works. Edit /etc/udev/permissions.d/udev.permissions to change the permissions permanently.

pembo13 07-25-2005 04:20 PM

Quote:

Originally posted by linux-rulz
No, this isnt a bug, it is how udev works. Edit /etc/udev/permissions.d/udev.permissions to change the permissions permanently.
A user not having access to their cdrom by defaul is normal?

linux-rulz 07-25-2005 05:06 PM

Quote:

A user not having access to their cdrom by defaul is normal?
No, it isn't. But I think upgrading the entire Operating System is a little drastic when editing a text file will probably suffice. There is most likely an error in the file, not in the software. Changing the permissions in that file will cause it to set those permissions on every boot. Probably easier to edit a line in a text file than redo the entire system :p Hell, entering a command to change the permissions manually on every boot is still easier than redoing the entire system.

udev on CentOS (and most likely RHEL) causes users not to be able to access a scanner device by default. I edited the file but I didn't change or upgrade the distro over this error.

If my suggestion doesn't work, just add the command you always enter to change the permissions to whatever you want to /etc/rc.local and this command will be run on every boot.

silentboob 07-26-2005 05:00 PM

heh I had problems playing audio cd's, annd some problems with open gl apps, upgrading udev fixed that problem.

trempel 07-28-2005 07:08 PM

what does that little checky-box labelled "sticky" do in the permisions dialog box?

I'm not 100% sure what you want me to do with that text file. After looking it over briefly I assume I should change the value for cdroms under "optical devices" from 0660 to 0664.
Is that correct?

linux-rulz 07-28-2005 08:57 PM

Yes, that should fix the problem. And, if not, revert back to the original settings, and then take the command you issue each time you turn on the computer (eg. chmod 644 /dev/hdc) and put that command in /etc/rc.local and it will be run everytime you boot your computer.

dr_zayus69 08-17-2005 04:37 PM

hi i had the same issue. Do you need to reboot for udev to recreate the dev entries with the new permissions or is there a way to do it vai command line?

linux-rulz 08-18-2005 01:12 AM

Unplug the device and plug it back in, or else use chmod to change the permissions.

spooon 08-18-2005 02:24 AM

I think you can give users ability to mount and access drives in /etc/fstab
In particular, I think that in the mount options (4th field), "pamconsole" does what you want.


All times are GMT -5. The time now is 07:18 AM.