Re: devfs: default permissions - SOLUTION

Richard Gooch (rgooch@atnf.CSIRO.AU)
Sat, 10 Jan 1998 09:54:45 +1100


Christian A. Lademann writes:
> How about some special file like /proc/devperms or /devfs/devperms that
> contains conservative defaults on system-boot and can be overwritten with
> the default permissions favoured by the system-administrator as one of
> the first things before loading the device-drivers?
>
> It could look like
>
> # dev uid gid mode flags
> hd 0 0 0600 nocreate
> lp 0 0 0660 nocreate
> sd 0 0 0600 nocreate
> ttyC 0 0 0660
>
> .
> .
> .

What creates those "conservative defaults" before device drivers are
loaded? What happens if a device driver is loaded (i.e. built-in)
before the administrator changes the permissions?
Also, you you have to write the entire permissions database again?
Finally, you can get a more traditional effect by doing:
# ls -l /dev
# chown root.lp /dev/lp*

Regards,

Richard....