X running as root

Hey guys,

The X server on my Mabox is running as root although it is highly recommended for security that it is not. Therefore every vulnerability in X can have really bad consequences.
For instance, output from ps command:

root 123 456 10 okt24 tty7 01:12:19 /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

What can I do to remedy this problem?

See: Xorg - ArchWiki

At first you need change LightDM to something that support rootless Xorg.

1 Like

Thanks Tomek. I managed to sort it out quite easily with the help above. I chose not to run a login manager and just followed instructions and added my own .xinitrc file. This file overrides the template xinitrc which of course does not start the openbox-session. X now running as non-root user.