Re: chmod 660 on /dev/pass*

看板DFBSD_submit作者時間21年前 (2005/03/14 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串18/19 (看更多)
Joerg Sonnenberger wrote: > 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. > And another for pass/priority/sequencing control? Shouldn't have to cut 'n paste the entire line or block to another spot. That sort of editing can get dodgy over the wire. > 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. ACK. Anything can change once wetware logs-in. Basically a startup-time tool. > > 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 ..... ?? not quite awake here yet.... I think I shall go sit down... Bill
文章代碼(AID): #12DF1-00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #12DF1-00 (DFBSD_submit)