Comment 7 for bug 1292324

Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

Hi,

What is necessary for X to be able to run as non root is for the display-manager to allocate a tty for it, set that up with all the normal tty setup bits (proper permissions, create a new sid for the session), and then start "X" on that tty inside the new session, note this session should also be properly registered with systemd, but pam should take care of that for you when you login the user through pam, I guess pam probably also creates a new sid for you. X can not do this itself when not running as root.

Basically you want to duplicate the tty setup + login logic of "getty + login", currently X runs fine as non root from a simple text login + startx.

You may also want to talk to Ray Strode who has made the necessary changes for this for gdm.

Regards,

Hans