From: sn (sn@plato.chemietechnik.uni-dortmund.de)
Date: 09/02/93


From: sn@plato.chemietechnik.uni-dortmund.de (sn)
Subject: Re: Only root can run X...
Date: 2 Sep 1993 13:50:05 GMT

dnewcomb@cybernet.cse.fau.edu (Dan Newcombe) writes:

>john.will@satalink.com (John Will) writes:

>> K >I've seen mention to this one before, but I can't find it. I'm
>> K >finding that I can only run X as root because the server tried to
>> K >change the I/O priority level for some reason. What's the recommended
>> K >way around this restriction? I don't really like making the server
>> K >run suid'd because I don't think it SHOULD run that way...
>>
>> Since that's the proper way to solve the problem, I guess you're out of
>> luck. :-)

>Maybe it's just me, but I can log in as a (gasp) "normal user" and run
>X just fine.

Have a look at the X Server binary. They run setuid root , i.e. even though
you are starting them as a normal user, they run with root permissions.
If you don't set the setuid bit for the X Server, you can't run it as
non-root.

-Sven