#809067 lightdm should no longer run the Xorg server as root

Package:
lightdm
Source:
lightdm
Description:
simple display manager
Submitter:
Vincent Lefevre
Date:
2026-11-23 10:35:01 UTC
Severity:
wishlist
Tags:
#809067#5
Date:
2015-12-26 22:06:09 UTC
From:
To:
The Xorg server no longer needs to be run as root, for security
reasons. See /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz

xorg-server (2:1.17.3-1) unstable; urgency=medium

  The Xorg server is no longer setuid root by default.  This change reduces the
  risk of privilege escalation due to X server bugs, but has some side effects:

  * it relies on logind and libpam-systemd
  * it relies on a kernel video driver (so the userspace component doesn't
    touch the hardware directly)
  * it needs X to run on the virtual console (VT) it was started from
  * it changes the location for storing the Xorg log from /var/log/ to
    ~/.local/share/xorg/

  On systems where those are not available, the new xserver-xorg-legacy package
  is needed to allow X to run with elevated privileges.  See the
  Xwrapper.config(5) manual page for configuration details.

#809067#12
Date:
2026-11-23 10:32:45 UTC
From:
To:
control: forwarded -1 https://github.com/ubuntu/lightdm/issues/18

hi Vincent, that's totally true but it seems more easy to write than to code.

We would definitely need help on this if you're interested and able.
Unfortunately the subject didn't really move forward in a long time.

Regards,