You are not logged in.
Pages: 1
Hi all--
So when I execute "startx" as a normal, underprivileged account, X starts as expected. However, when I run top, it reports that X is running as root. This strikes me as somewhat odd, as I have no idea how it has rights to do this. Is this something that I should be concerned about?
Last edited by TheHebes (2012-02-07 13:15:24)
Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e
Offline
Nothing odd about it, X has always been running as root. It has to. As to the rights... Xorg is a suid root binary.
Offline
Hmm. That seems rather foolish. Ah well, thanks for clearing that up.
Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e
Offline
It should be possible to run X without root privileges but i don't know how to do it ![]()
Offline
It should be possible to run X without root privileges
Not really. Not without source patching. Graphics shouldn't be a problem now that we have KMS, but there's still stuff left to do regarding input handling before the suid bit can be dropped from Xorg.
Offline
...before the suid bit can be dropped from Xorg.
In fact the setuid bit can already be dropped, it is in other distros (like OpenSuse).
It is only required when using startx after logging in as user to start graphical environment;
when using a display manager (xdm, kdm, ...) it is not necessary.
But nevertheless the Xorg server process is still run as root, because everything started at boot time run with root privileges, and the display manager is run at boot time, either in the DAEMON variable of /etc/rc.conf or in /etc/inittab.
So running Xorg as a non root user is distinct from the setuid bit of the xorg binary.
But this doesn't change the fact that the Xorg server process always runs presently with root privileges in every cases.
And it seems that no upstream devs is motivated enough to implement completely the possibility to run it without root privileges.
Though it would be nice to become so.
See http://en.gentoo-wiki.com/wiki/Non_Root_Xorg-Server for a solution to implement that with much re-compilations.
Offline
So running Xorg as a non root user is distinct from the setuid bit of the xorg binary.
ah. Thanks for the clarification.
See http://en.gentoo-wiki.com/wiki/Non_Root_Xorg-Server for a solution to implement that with much re-compilations.
Err...
Enable access to input devices, there must be a better way to do this, enabling this allows any application to tap keyboard/mouse.
That's just... baaaaaad.
Offline
Enable access to input devices, there must be a better way to do this, enabling this allows any application to tap keyboard/mouse.
That's just... baaaaaad.
Changing the permissions of the /dev/input/* devices seems like something ConsoleKit should do.
Offline
Pages: 1