Re: chmod 660 on /dev/pass*

看板DFBSD_submit作者時間21年前 (2005/03/12 08:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/19 (看更多)
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
文章代碼(AID): #12CZY900 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #12CZY900 (DFBSD_submit)