Subject: Re: X and the single user
To: TAKEMURA Shin <takemura@netbsd.org>
From: Warner Losh <imp@village.org>
List: port-hpcmips
Date: 07/18/2000 12:17:14
In message <009901bff0c3$c5b51090$0101a8c0@SHIN> "TAKEMURA Shin" writes:
:
: ----- Original Message -----
: From: "Warner Losh" <imp@village.org>
: To: <port-hpcmips@netbsd.org>
: Sent: Monday, July 17, 2000 1:10 PM
: Subject: X and the single user
:
:
: > I can run X on my MC/R430 (MobilePro 780) w/o a problem as root.
: > However, when I try to run it as me, it fails, even if I make Xhpc
: > setuid root. It fails like so:
: >
: > Fatal server error:
: > no screens found
: > X connection to :0. broke (explicit kill or server shutdown).
:
: I think Xhpc will say so if it could not open /dev/ttyE*.
No. It won't. It just says no screens are found. I was able to
ktrace this. Bad things happen if I do a chown imp /dev/ttyE0 and try
to start. The console effectively goes away. :-(.
: > I suspect that something has a bad permission and that I'll be unable
: > to rectify this before correcting it. Ideas?
:
: Xwrapper might help you....
Hmmm.. I tried making it setuid root. I'll try this, but I think
that Xhpc is dropping any privs that it has too soon.
Warner