From: Isaac Wong (wongi@netcom.com)
Date: 12/08/92


From: wongi@netcom.com (Isaac Wong)
Subject: SOLVED:Re: can't startx as non-root
Date: Tue, 8 Dec 1992 06:15:49 GMT


a few people have asked me to summarize, so here it comes.
the only response i've received is from James Chacon and it solved the problem.
thanks james. the only thing i may add is to make sure xinit is also setuid
root (ie chmod u+s /usr/bin/X11/xinit)

======================================================================
From: probreak@matt.ksu.ksu.edu (James Michael Chacon)

Check to make sure xterm and the X386 binary are setuid root.
If you ls -l them you should see:
-rwsr-xr-x 1 root wheel 123908 Dec 5 23:33 xterm
-rwsr-xr-x 1 root wheel 893956 Dec 5 23:33 X386

The group can be different depending on how you installed everything.
The main thing, is that the s is there on the 4th character.

If it isn't, do the next 2 commands:
chmod 4755 /usr/X386/bin/xterm
chmod 4755 /usr/X386/bin/X386

That should fix any problems. Oh yea, make sure /tmp has the right permissions
also. It should be read-writable by anyone with the sticky bit set also.

Do a chmod 1777 /tmp to make sure.