[SOLVED] Getting Rootless Xorg Working in Slackware-current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Getting Rootless Xorg Working in Slackware-current
I was wondering if anyone has actually gotten Rootless Xorg working in Slackware-current, now that it uses elogind? I've been trying to get it working, but so far i've been stumped. I've tried:
- Setting --enable-systemd-logind in x11's slackbuild.
- Removing the suid bit from /usr/bin/Xorg, /usr/libexec/Xorg.wrap, and /usr/libexec/Xorg.
- Creating a file called /etc/X11/Xwrapper.config and adding the lines:
Code:
needs_root_rights = no
allowed_users = anybody
(Also tried it with needs_root_rights = yes)
- Adding elogind.so to /etc/pam.d/system-auth.
- Making sure dbus is loaded before startx is called via:
Code:
eval $(dbus-launch --sh-syntax)
- Adding user to the following groups: video, audio, input.
If anyone has any suggestions on how to get this working, i'm all ears. Also, it's not a neccesity that I got rootless xorg working, but it'd be really cool though, wouldn't it?
Sounds like a privilege issue. I use the adduser script when adding users, it's pretty handy in assigning the proper groups, then add the wheel group applicable.
Awesome, that actually worked! I hope that slackware adopts that change, as it doesn't really have any downsides from what I know, and only increases security, even if some would debate that it's marginal. Thanks for pointing me in the right direction =)
This is being asked to not allow root privilege for normal user to xorg?
No, I was asking why Xorg wasn't defaulting to not escalting itself to root, since by default, Xorg tries to deescalate itself back to your user after it's done doing hardware things. And this is possible thanks to logind, which Slackware has now thanks to elogind. As it turned out, the xorg-server package in slackware was built without support for logind, which is why xorg was still running itself as root. Hopefully, they enable logind support in Xorg before Slackware 15 comes out
So my question is - thats it? Is a rootless X working ? Also I wonder - is if feasible for Pat to implement it in Slackware down the line? I rather like the idea of rootless X too - primarily for hardening/securing Slackware.
So my question is - thats it? Is a rootless X working ? Also I wonder - is if feasible for Pat to implement it in Slackware down the line? I rather like the idea of rootless X too - primarily for hardening/securing Slackware.
For me, it's working perfectly. I've had zero issues. And I agree, I would like for this to atleast be an option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.