Article 6DAHB Rootless X11 in -current

Rootless X11 in -current

by
bl0tt0
from LinuxQuestions.org on (#6DAHB)
I noticed that the newest release of sddm-0.2.0 includes the ability to run it as an unprivileged user, and being curious about how this works on Slackware-current, I decided to give it a test by setting 'DisplayServer=x11-user' in /etc/sddm.conf (I had already rebuild the xorg-server packages with ROOTLESSX=YES). It failed to load, but the sddm.log file was giving the following output:

Code:[17:42:13.838] (EE) HELPER: Failed to take control of "/dev/tty1" ("root"): Operation not permitted
[17:42:13.921] (EE) HELPER: Failed to take control of "/dev/tty1" ("root"): Operation not permitted
[17:42:13.989] (EE) HELPER: Failed to take control of "/dev/tty1" ("root"): Operation not permitted
[17:42:14.055] (EE) HELPER: Failed to take control of "/dev/tty1" ("root"): Operation not permitted
[17:42:14.122] (EE) HELPER: Failed to take control of "/dev/tty1" ("root"): Operation not permitted
[17:42:14.188] (EE) HELPER: Failed to take control of "/dev/tty1" ("root"): Operation not permittedIt seems that the unprivileged DisplayServer values in SDDM have /dev/tty1 hard-coded as the graphical output, per the new standards of that *other* init system.

Anyways, I discovered I can get the unprivileged display server to launch by commenting out the /dev/tty1 line in /etc/inittab and rebooting. After that, I was able to launch sddm as the unprivileged user on /dev/tty1 and log in. I had to manually switch to /dev/tty7 to see the session, but thus far it seems to be working well.

If anyone else is interested in running unprivileged Xorg, I would recommend giving it a try and seeing how it works for you too.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments