Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Permissions on my system for the devices keep reverting to root-only. This is particularly bad since I have a second hard drive, formatted as /home, and permissions on it keep reverting too. I tried to chmod them, as I was told that even hardware is a file on *ix systems, but that didn't work - it just says that's "not supported on protocol devices".
It keeps happening every time I su root or use a device while logged in as root. Now, occasionally I've had to su root or log in as root. And then I'm stuck with my 2nd hd, cd-rw, dvd-rom and floppy being root-only.
What do I do to fix this? Is there a permanent fix for it (permanent until I change the permissions deliberately myself)?
Thanks in advance.
(Edit: I did search first, both here and on google, but everything that turns up just instructs me how to chmod files, which I've already tried.)
Last edited by Mistshadow; 02-05-2004 at 09:52 PM.
Originally posted by Tinkster Which distro is this happening with?
Certainly not Slack
Are you using devfs?
Cheers,
Tink
SuSE 8.2 and the latest Mepis. But I've seen this happen before with other distros I tried out (but, no, not Slack ).
As to devfs, what's that? It might be under a different name on my distro, maybe not. It's not on the menu, so how would I start it from a shell? Just tap in devfs?
devfs is an approach used to "simplify" the
use (the reading/handling) of /dev
It will only create nodes for devices actually
used.... I've only got it installed on one of
my machines (just for testing, really) ...
[tink@athlon:~]$ ls -l /dev | wc -l
441
[tink@athlon:~]$ ls -l /dev
total 0
lr-xr-xr-x 1 root root 12 Feb 7 2004 agpgart -> misc/agpgart
lr-xr-xr-x 1 root root 13 Feb 7 2004 apm_bios -> misc/apm_bios
lr-xr-xr-x 1 root root 31 Feb 7 06:42 cdrom -> scsi/host1/bus0/target0/lun0/cd
drwxrwxr-x 1 root dvd 0 Jan 1 1970 cdroms/
crw------- 1 root root 5, 1 Feb 7 06:42 console
drwxr-xr-x 1 root root 0 Jan 1 1970 cpu/
drwxr-xr-x 1 root root 0 Jan 1 1970 cua/
lr-xr-xr-x 1 root root 5 Feb 7 06:42 cua0 -> cua/0
drwxr-xr-x 1 root root 0 Jan 1 1970 discs/
lr-xr-xr-x 1 root root 9 Feb 7 06:42 dsp -> sound/dsp
lr-xr-xr-x 1 root root 10 Feb 7 06:42 dsp1 -> sound/dsp1
lr-xr-xr-x 1 root root 30 Feb 7 2004 dvd -> ide/host0/bus0/target1/lun0/cd
The thing is that with devfs, permissions get re-created
each time you boot. And if you haven't enabled saving
of permissions in /etc/devfsd.conf (or if you don't explicitly
set them in the same file) you're screwed :} (that is, you get
the effect you described). However, there may well be a different
(stupid, distro-specific) way to achieve the same outcome :)
"File not found" and "file missing" - while I have it /etc open in my file manager looking at "boot.restore_permissions" it's saying it doesn't exist! Also sysV-init editor says the file is missing, even though it's on it's list.
Bug, you say? Quick, get the Raid! Lol. I've been trying to use an old copy of 8.2 while my SuSE 9 Pro is in the mail, but I guess I might as well give it up until it gets here. If it does the same thing to me, I'll be filing a bug report with SuSE.
Usually if I change permissions in /dev I just do a restart of devfsd and the next time I boot the permissions are set.
service devfsd restart
or
/etc/init.d/devfsd restart
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.