Re: chmod 660 on /dev/pass*
On Sat, Mar 12, 2005 at 12:52:15AM +0100, Joerg Anslik wrote:
> Before we start quoting our favorite man pages here, I think a simple
> "devperms.local" or so with something like
>
> nsa* 660
> pass0 660
> pass1 600
> fridge 644
Well, make it three columns: device owner:gid permission.
It might be dangerous to support per-device permissions, since they can
change, but it should be enough to add a big fat warning to the beginning
of the example file.
Thinking a bit more about it, we might split the MAKEDEV script into
a small C program which reads three config files:
/etc/defaults/makedev.conf
/etc/defaults/makedev.groups
/etc/makedev.conf
The makedev.conf contains mappings of the form:
device_name permission owner group b/c major minor
(with default values field from right to left in /etc/makedev.conf)
It might include some formular support for major minor like
adAsBZ 640 root wheel c (A + 116) (Z * 0x1000 + B)
(with A .. D being digits and X..Z being letters)
But this might of course be overengineered.
Joerg
討論串 (同標題文章)
完整討論串 (本文為第 14 之 19 篇):