FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
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.
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?
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 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.
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.