xinit: "xf86OpenConsole: Server must be running with root permissions"

Lowell Gilbert freebsd-questions-local at
Sun Nov 2 07:02:37 PST 2003

"Brunoc at" <brunoc at> writes:

> I have problems with my startx script,see my other email
> "when I invoke startx, it seems to 'freeze' for a minute or so,then starts".
> Before fixing the startx issue (I think startx has been overwritten
> by the fluxconf->XFree86-libraries-4.3.0 installation),
> I tested xinit after setting the root setuid bit of the X server 
> (which on my machine points to XF86_SVGA).According to the
> xinit error,"I should be using Xwrapper to start the server or xdm.
> We strongly advise against making the server SUID root!".
> So,with the setuid bit set,xinit works,but the elegant solution
> would be to use Xwrapper.How can I use Xwrapper ?
> Does it accept a server name to execute ?

Install the /usr/ports/x11/wrapper port.  It replaces the X link in
/usr/X11R6/bin.  If you've really corrupted your startx script, you
may need to fit that up (there are several approaches), but I doubt
that will be an actual problem.

More information about the freebsd-questions mailing list