Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Funky xserver perms and shell paths' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Funky xserver perms and shell paths
Authored by: winsomelosesome on Jan 11, '03 09:01:29AM

OK... I have a very cludgie work-around. But first my probs.
1) opening x11 apps as a different user fails. Certain apps (like ethereal) need to run as root. In XTerm, if I su then attempt to run the app, I get an error message saying that it can not open display 0, connection refused by server.
2) This problem exists after my work-around: paths are all screwed up, my home directory maps to /var/root.

Work around:
In a terminal, I su to root, and start X11. The interesting thing is that the shell in xterm defaults back to my logged in user account (with messed up paths). to correct this, I su to myself and it corrects.

So, anybody got a real fix to enable me to launch X11 as my logged in user and be able to open apps to run as root?



[ Reply to This | # ]
SOLVED: Funky xserver perms and shell paths
Authored by: nick on Feb 11, '03 03:49:37AM

execute "xhost + localhost" before su-ing



[ Reply to This | # ]
Funky xserver perms and shell paths
Authored by: DrGraefy on Feb 20, '03 12:12:08AM

I have also noticed that X11 won't run after a different user has previously used it on the same boot, but the error has something to do with files in /tmp. if you su to root and clean out the /tmp directory, X11 will start fine. I have yet to figure out why X11 is leaving things from other users behind in /tmp.



[ Reply to This | # ]