I just discovered that something has caused many device files (many of them audio) have ended up with the wrong ownership/permission. (My daughter's account had ownership.) I fixed some, but I have no idea what's the right permissions. Is there some way I can check the permissions? Ideally, there would be a script that would report which device files are not set to the default. (I've changed some, like the cdrom and floppy, intentionally.) TIA, Bill
On Saturday 23 March 2002 06:19 pm, Bill Mills-Curran wrote:
I just discovered that something has caused many device files (many of them audio) have ended up with the wrong ownership/permission. (My daughter's account had ownership.) I fixed some, but I have no idea what's the right permissions. Is there some way I can check the permissions? Ideally, there would be a script that would report which device files are not set to the default. (I've changed some, like the cdrom and floppy, intentionally.)
The script that creates the device files is called MAKEDEV. I don't know what distro you have, but check your CD (or web site) for the script. You may find that it was left in the /dev directory, and all you need to do is execute it. If you use devfs, the devices are created at boot time. --Skip
On Red Hat systems, pam_console is configured by default to change the
permissions on certain console devices (floppy, cdrom, sound, etc.) when
users login/logout of the console. This is done so the console user
automatically can use these devices when they log in, and the
permissions revert to root when they log out. This is completely
configurable through the /etc/security/console.perms file.
On Sat, Mar 23, 2002 at 06:19:05PM -0500, Bill Mills-Curran wrote:
subssn594> I just discovered that something has caused many device files (many of
subssn594> them audio) have ended up with the wrong ownership/permission. (My
subssn594> daughter's account had ownership.) I fixed some, but I have no idea
subssn594> what's the right permissions. Is there some way I can check the
subssn594> permissions? Ideally, there would be a script that would report which
subssn594> device files are not set to the default. (I've changed some, like the
subssn594> cdrom and floppy, intentionally.)
--
Charles R. Anderson
participants (3)
-
Bill Mills-Curran
-
Charles R. Anderson
-
Skip Gaede