Why Wont X Run Unless I am Root?

Why Wont X Run Unless I am Root?

Post by Jarod M. Rodrigu » Sun, 08 Jan 1995 13:26:54



The Subject says it all.  I just reistalled Linux onto a new
Hd and Xwindows wont run with any other user other than root.
I figure their is a file that has the wrong  file permissions.
If anyone out has had this problem and knows how to fix would
you please let me know.
                                        Thanks for any info,

please e-mail

Jarod

--
*****************************************************************
**                    Jarod M. Rodriguez                       **
**         University of North Carolina at Wilmington          **
**                                                             **


**                                                             **
**   Phone  -  Home: (910) 313-2564   Work: (910) 395-7928     **
*****************************************************************

 
 
 

Why Wont X Run Unless I am Root?

Post by David Kastr » Sun, 08 Jan 1995 19:30:14



Quote:>The Subject says it all.  I just reistalled Linux onto a new
>Hd and Xwindows wont run with any other user other than root.
>I figure their is a file that has the wrong  file permissions.
>If anyone out has had this problem and knows how to fix would
>you please let me know.
>                                    Thanks for any info,

How about /tmp? It should have permissions
chmod /tmp 1777
Namely
-rwxrwxrwt-
--
David Kastrup, Goethestr. 20, D-52064 Aachen        Tel: +49-241-72419

--
David Kastrup, Goethestr. 20, D-52064 Aachen        Tel: +49-241-72419


 
 
 

Why Wont X Run Unless I am Root?

Post by James C. Ahlstr » Thu, 12 Jan 1995 04:14:29





>>The Subject says it all.  I just reistalled Linux onto a new

>How about /tmp? It should have permissions
>chmod /tmp 1777

Do an "ls -la" in /tmp.  There is a file ".X11-unix" there which is
used for communication by the server.  Change its mode to 777.

Jim Ahlstrom              $clever

 
 
 

Why Wont X Run Unless I am Root?

Post by Random Walk » Thu, 12 Jan 1995 11:40:57



  % >
  % >How about /tmp? It should have permissions
  % >chmod /tmp 1777

  % Do an "ls -la" in /tmp.  There is a file ".X11-unix" there which is
  % used for communication by the server.  Change its mode to 777.

You would also need to check that your X server XF86_* is also
suid root. chmod 4755 XF86_* should fix it. ie, you shld get file
permissions rwsr-xr-x for the server file.

--
[]==========================:=========================================[]
 | Leow Ek Teck             | An income statement is like a bikini... |

 |                          | it conceals is vital.                   |
 |                          |          - Burton G. Malkiel            |
 |                          |          A Random Walk Down Wall Street |
[]==========================:=========================================[]

 
 
 

Why Wont X Run Unless I am Root?

Post by James C. Ahlstr » Sat, 14 Jan 1995 06:24:06







>>>The Subject says it all.  I just reistalled Linux onto a new

>>How about /tmp? It should have permissions
>>chmod /tmp 1777

>Do an "ls -la" in /tmp.  There is a file ".X11-unix" there which is
>used for communication by the server.  Change its mode to 777.

>Jim Ahlstrom              $clever

Well, I didn't get it quite right.  "/tmp/.X11-unix" should be chmod 755,
and "/tmp/.X11-unix/X0" should be 777.  Check the names on your system.

In case you are interested, X runs as a server process, and your app
runs as a client process.  This file (a socket) provides interprocess
communication for X.  The stipled background is created by the X server,
but nothing further happens because the app can not talk to it.
The X install procedure should check for proper permissions on this file.

Also, in a jam, you can kill the server with control-alt-backspace.

Jim Ahlstrom              $clever