https://www.debian.org/releases/stable/ ... uires-root
As noted in the link, this reduces the risk of privilege escalation via bugs in the X server.
However, the MX desktop runs the LightDM display manager (login screen) and this runs X as the root user.
To run X as the regular user the GDM display manager could be installed to replace LightDM but this draws in gnome-shell and many other dependencies, which may not be wanted.
Alternatively simply disable the display manager completely:
Code: Select all
sudo sysv-rc-conf lightdm off
Code: Select all
startx
Code: Select all
[ $(tty) = /dev/tty1 ] && exec startx
If other desktops are installed change between them with
Code: Select all
sudo update-alternatives --config x-session-manager
Note that this method will not work under VirtualBox or if the kernel has no driver that supports your video card.
To revert to LightDM use this command:
Code: Select all
sudo sysv-rc-conf lightdm on