Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Xorg starts from root user (Read 1442 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Xorg starts from root user

Hey guys! I'm using xorg-xinit. startx runs xorg from root user. I have elogind-runit installed. Tried it on Arch virtual machine and xorg runs from regular user. How do I fix this security vulnerability?





 




Re: Xorg starts from root user

Reply #9
If you set up from base ISO, then your either missed something or added something; the DE ISOs start X rootless. If asked about xorg-xwrapper because it might be one reason your X is root-started. It doesn't hurt to try adding needs_root_rights=no and see how it goes.

Re: Xorg starts from root user

Reply #10
If you set up from base ISO, then your either missed something or added something; the DE ISOs start X rootless. If asked about xorg-xwrapper because it might be one reason your X is root-started. It doesn't hurt to try adding needs_root_rights=no and see how it goes.
I set up my system from the base ISO. I haven't done any configuration to neither nvidia driver or xorg. I found out that by default xorg starts by root if nvidia drivers are used. But if I add  needs_root_rights = no  to /etc/X11/Xwrapper.config everything goes fine and xorg starts from regular user.