xserver running as root

xserver running as root

Post by Aurelio Turc » Wed, 04 Dec 2002 14:54:13



The xserver (or Xwrapper) is suid root.
This is necessary to access certain privileged devices.

Now I have heard that, in conformance with good security
practices, the xserver quickly gives up its root privileges
as soon as it has opened those devices, by changing the
effective user back to the real user. However, when I run a
"ps -eo euser,ruser,cmd" the effective user still appears
to be root. Is this required behaviour? Is it not possible
to run the xserver as an ordinary user after the privileged
devices have been opened?

Cheers.
Aurelio.

 
 
 

xserver running as root

Post by Norman Levi » Wed, 04 Dec 2002 23:32:31



| The xserver (or Xwrapper) is suid root.
| This is necessary to access certain privileged devices.
|
| Now I have heard that, in conformance with good security
| practices, the xserver quickly gives up its root privileges
| as soon as it has opened those devices, by changing the
| effective user back to the real user. However, when I run a
| "ps -eo euser,ruser,cmd" the effective user still appears
| to be root. Is this required behaviour? Is it not possible
| to run the xserver as an ordinary user after the privileged
| devices have been opened?
|
| Cheers.
| Aurelio.

As long as X is going to control the real screen, keyboard, mouse, tablet, etc, I
don't think it can run as a user but needs to run as root.
norm

 
 
 

xserver running as root

Post by Alan Coopersmit » Tue, 10 Dec 2002 03:54:56




|| The xserver (or Xwrapper) is suid root.
|| This is necessary to access certain privileged devices.
||
|| Now I have heard that, in conformance with good security
|| practices, the xserver quickly gives up its root privileges
|| as soon as it has opened those devices, by changing the
|| effective user back to the real user. However, when I run a
|| "ps -eo euser,ruser,cmd" the effective user still appears
|| to be root. Is this required behaviour? Is it not possible
|| to run the xserver as an ordinary user after the privileged
|| devices have been opened?
||
|| Cheers.
|| Aurelio.
|
|As long as X is going to control the real screen, keyboard, mouse, tablet, etc, I
|don't think it can run as a user but needs to run as root.

Depends on the platform/OS.  On Solaris/sparc for instance, X never
needs to run as user root, as the sparc platform doesn't require it
to access devices the way the intel platform does.  On Solaris/intel,
the Xserver is able to drop priveledges for most of the Xserver
operation, reasserting them when necessary.

--
________________________________________________________________________


  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

1. RedHat 6.1 can only run xserver as root.

Ok, there has to be a simple answer to this one.  When I try to run server
(startx) on any account, I get a Authentication failed - cannot start X
server ... do not have console ownership?_X11TransSocketUNIXConnect: Cant
connect: errno = 111

What gives and how do I fix it.

Thanks
-Rob


address is rlockard at gte dot net

2. Emulating Apple Laser Printer?

3. Running xdm without run XServer

4. DVD Writers for Linux

5. solved, setuid root vs. running as root

6. Mounting FAT32

7. run a non-root user's program from a non-root user

8. network to host order

9. setuid root vs. running as root

10. Running scripts as root w/o root password

11. Server is SUID root, but only root can run X?

12. Problem Running X-Windows (only root runs)

13. Running cgi chrooted without running httpd as root