Subject: Re: / trashed #2
To: None <amiga@NetBSD.ORG>
From: Ty Sarna <tsarna@endicor.com>
List: amiga
Date: 10/14/1994 17:47:19
In article <199410142115.AA00446@M3iSystems.QC.CA>,
Danny Lepage  <poutine@M3iSystems.QC.CA> wrote:
> The permission of /dev/kbd don't seem to be right. (I had the same problem,
> for me, /dev/kbd have to be readable, writable by everyone).
> 
> By the way, should X servers be set setuid root, or /dev/kbd set g+rw,o+rw??

Neither. Either you should run xdm, with appropriate GiveConsole and
TakeConsole scripts (in /usr/X11R?/lib/X11/xdm/ or whever) to change the
ownership on the fly, or you need a getty/login like SunOS that handles
/etc/fbtab (which does basicly the same thing for normal non-X logins).
I don't think NetBSD's getty/login do, though.

If you have to choose between a suid root X server and world-accessable
/dev/kbd and /dev/mouse*, I'd go with the latter, I guess, but both are
not very secure.

-- 
Ty Sarna                  "Shut up, I'm having a rhetorical conversation!"
tsarna@endicor.com                  -Max, _The Producers_