Running Xorg without SUID

Is it possible in FreeBSD to execute Xserver without root privileges?

I compile latest Xorg without "SUID" option and kernel is GENERIC 9-STABLE.

After I launch xinit as regular non-root user it gives the following Fatal server error:
Code:
xf86OpenConsole: Server must be suid root

xserverrc:
Code:
exec /usr/local/bin/X -logfile ~/Xorg.log -nolisten tcp
Xorg-server works like a charm with root account, but it's not a good practice to run as root and I want to make it run by unprivileged user.
 
I believe Xorg needs access to /dev/mem if I am not mistaken and that pretty much leaves you with the root access need.
 
Back
Top