Derrick 'dman' Hudson wrote:
| Hello,
| you shouldn just copy over .Xauth files.. It will ruin root X access ;)
What do you mean, ruin root X access? What X access does root have
in the first place? You certainly don't 'startx' as root in the first
place, do you?
Well, you can startx as
Hi all
Don't know if it's been mentioned on this thread yet, but Francois Gouget
wrote a script, sux[1], to transfer $DISPLAY and X cookies so X apps work
fine when assuming another user's identity. Details were posted here[2]
about a year ago and I've appreciated it ever since. Just use it as
on Sun, Jun 16, 2002, Oleg ([EMAIL PROTECTED]) wrote:
On Sunday 16 June 2002 10:55 pm, ttv wrote:
Hi, when I su as root, I can't run X apps ...
Camranh:/home/thanh# Xlib: connection to :0.0 refused by server
Xlib: Client is not authorized to connect to Server
emacs: Cannot connect to
This is from a local LUG list:
The safe way of doing this is to use xauth. xauth will allow you to
set a magic cookie on your root account such that your X server will
recognize it as being eligible to access your X server.
First, as the non-root user who is running X type in an xterm:
On Sun, Jun 16, 2002 at 10:55:15PM -0400, ttv wrote:
| Hi, when I su as root, I can't run X apps ...
Solution 1 :
Don't su -. If you don't put the '-' on there, su will inherit
the current process' environment and maintain xauth
Solution 2 :
# cp ~user/.Xauthority ~/
Copy your
ttv writes:
Hi, when I su as root, I can't run X apps ...
X apps are not secure enough to be run by root.
any ideas how to fix it ?
'emacs -nw' will run emacs in an xterm.
--
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
On Sunday 16 June 2002 10:55 pm, ttv wrote:
Hi, when I su as root, I can't run X apps ...
Camranh:/home/thanh# Xlib: connection to :0.0 refused by server
Xlib: Client is not authorized to connect to Server
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use
Derrick 'dman' Hudson wrote:
On Sun, Jun 16, 2002 at 10:55:15PM -0400, ttv wrote:
| Hi, when I su as root, I can't run X apps ...
Solution 1 :
Don't su -. If you don't put the '-' on there, su will inherit
the current process' environment and maintain xauth
Solution 2 :
# cp
On Mon, Jun 17, 2002 at 04:22:55AM +0100, Nuno Silva wrote:
| Derrick 'dman' Hudson wrote:
| On Sun, Jun 16, 2002 at 10:55:15PM -0400, ttv wrote:
| | Hi, when I su as root, I can't run X apps ...
| Solution 2 :
| # cp ~user/.Xauthority ~/
|
| Copy your normal user's .Xauthority file to
9 matches
Mail list logo