Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know some distro's (Moblin? ) have X starting as a user other than root already... What is required to do this? What steps need to be taken?

I don't think it matters but I think X is started by KDM on my system and I'm running Arch Linux

share|improve this question
When I was with Slackware, I used to type startx after logging in, so I think that was me who start the X server (and not root). Is that what you are asking for? – phunehehe Sep 12 '10 at 15:42
@phunehehe: No, it doesn't matter whether the X server is started by a display manager or by startx. In most cases, the X server binary is setuid root (i.e. runs as root no matter who invoked it), and needs to be in order to access the video card. The question is about not needing the X server to run as root. – Gilles Sep 12 '10 at 15:52
up vote 3 down vote accepted

The first step that needs to be taken is to make sure that you have a card that supports kernel-mode-setting. If you don't you will likely still have to run X as root. Ubuntu is looking into doing this and thus has a small set of directions here: https://wiki.ubuntu.com/X/Rootless which I think should work as a good starting place for most major distros.

share|improve this answer
Intel Graphics has supported KMS the longest IIRC ;). – xenoterracide Sep 12 '10 at 16:04
So does nouveau (the open source nvidia driver), though only recently. – Hugo Sep 12 '10 at 18:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.