You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[10:48:14] <AnAkkk> after this change in the Xorg 1.16 arch package, SDDM no longer works correctly because at the time that X starts, it can't find the nvidia module https://bugs.archlinux.org/task/41259
[10:48:19] <AnAkkk> is that something we need to fix in sddm?
[10:48:44] <AnAkkk> I have to restart sddm with systemctl every time to make it work
[11:07:08] <AnAkkk> ok, actually it's related to the dkms systemd service + nvidia-dkms
[11:07:18] <AnAkkk> that I use to rebuild the nvidia module on kernel updates
[11:07:38] <AnAkkk> it seems to unload the nvidia module, X can't find it
Reacted by Jonas Schievink, Mikhail Abbas, Edward Miller, Ivan Semkin, Mikhail Morfikov, Nate Graham, alexacra, Ruben Van Boxem, Dennis Schridde, Mauro Toffanin and 5 more
Ignore my messages, they actually fixed that in the archlinux xorg package, and they were unrelated to rootless xorg.
SDDM still needs support for that though, otherwise X is still ran as root.
With major distributions supporting running x without root (fedora, arch, debian -> ubuntu) I consider it a security risk to run something as root when it does not have to.
However, sddm does not start. According to strace, Xorg.wrap reports "Only console users are allowed to run the X server". Seems Xorg check if one of stdin/stdout/stderr is /dev/ttyX [1], while strace tells me that all 3 file descriptors are FIFOs when Xorg.wrap is invoked.
SDDM seems to support this behaviour (from the README):
SDDM runs the greeter as a system user named "sddm" whose home directory needs to be set to /var/lib/sddm.
Maybe just you distro maintainer never tried this because it's more pain than gain, in the Arch IRC channels there are various poeple trying to rootless gdm work and fails for couple of reasonsons.
I guess this never will work perfectly because it' s using a piece of software made for big UNIX 36 years ago. Wayland support is more important, I hope.
SDDM seems to support this behaviour (from the README):
SDDM runs the greeter as a system user named "sddm" whose home directory needs to be set to /var/lib/sddm.
Maybe just you distro maintainer never tried this because it's more pain than gain, in the Arch IRC channels there are various poeple trying to rootless gdm work and fails for couple of reasonsons.
I guess this never will work perfectly because it' s using a piece of software made for big UNIX 36 years ago. Wayland support is more important, I hope.
Whether wayland is more important or not is not the focus on this. Rootless X has been available for years, and it's not about the greeter running as root or not, it's about X itself (Xorg) running as a normal user instead of root.
Reacted by Ye Shu, adojck, Vitaly and Mike Limansky
Activity
AnAkkk commentedon Aug 2, 2014
Ignore my messages, they actually fixed that in the archlinux xorg package, and they were unrelated to rootless xorg.
SDDM still needs support for that though, otherwise X is still ran as root.
jleclanche commentedon Aug 2, 2014
Ok.
bchretien commentedon Aug 10, 2014
👍 for rootless Xorg support (most Arch users would probably agree after the last Xorg update).
jleclanche commentedon Oct 16, 2015
@plfiorini Was there any progress on this?
tugit commentedon Nov 4, 2015
Debian testing allows running x without root, see https://www.phoronix.com/scan.php?page=news_item&px=Debian-Non-Root-X
I can start my Plasma 5 session by switching to a VT and type startx, then indeed X runs as the logged in user on the VT. When using sddm to login, X runs with root privileges.
Any progress ahead?
xiangzhai commentedon Nov 5, 2015
oh yup #492
tugit commentedon Nov 5, 2015
With major distributions supporting running x without root (fedora, arch, debian -> ubuntu) I consider it a security risk to run something as root when it does not have to.
Related discussion in case of lightdm: https://bugs.launchpad.net/lightdm/+bug/1292324
jleclanche commentedon Nov 5, 2015
PRs welcome.
plfiorini commentedon Nov 6, 2015
Let's try to do this for 0.14, we have ~2 months to do so.
plfiorini commentedon Nov 6, 2015
Information:
16 remaining items
Rihannakitten commentedon Nov 2, 2018
#673
bionade24 commentedon Jan 16, 2019
How is the progress at the moment? What has to be done?
devurandom commentedon Oct 6, 2019
Once you start X as user and want to get logind integration for it, you will need to pass it
-keeptty.See-Also: https://bugs.gentoo.org/603294
yan12125 commentedon May 9, 2020
Any updates? I tried the following two branches and neither works :/
However, sddm does not start. According to strace, Xorg.wrap reports "Only console users are allowed to run the X server". Seems Xorg check if one of stdin/stdout/stderr is
/dev/ttyX[1], while strace tells me that all 3 file descriptors are FIFOs when Xorg.wrap is invoked.Environment: Arch Linux up-to-date
[1] https://gitlab.freedesktop.org/xorg/xserver/-/blob/xorg-server-1.20.8/hw/xfree86/xorg-wrapper.c#L171
eepymoonshine commentedon Nov 4, 2020
Any news on this?
bionade24 commentedon Nov 4, 2020
Afaik even gdm needs to be root for certain tasks and then downgrades itself. So it's not really easy to accomplish.
No one wants to work on the X server anymore, focussing on wayland is more important. https://www.phoronix.com/scan.php?page=news_item&px=XServer-Abandonware<
SDDM seems to support this behaviour (from the README):
Maybe just you distro maintainer never tried this because it's more pain than gain, in the Arch IRC channels there are various poeple trying to rootless gdm work and fails for couple of reasonsons.
I guess this never will work perfectly because it' s using a piece of software made for big UNIX 36 years ago. Wayland support is more important, I hope.
kugel- commentedon Nov 4, 2020
Whether SDDM/GDM itself runs as root or not is a separate issue. This issue is about rootless X which is a subordinary process.
eepymoonshine commentedon Nov 15, 2020
Whether wayland is more important or not is not the focus on this. Rootless X has been available for years, and it's not about the greeter running as root or not, it's about X itself (Xorg) running as a normal user instead of root.
WIP Xorg user session
X11 display server without root privileges
X11 display server without root privileges
X11 display server without root privileges