[ale] remote X problems.
Jason Day
jasonday at worldnet.att.net
Thu Aug 7 12:29:12 EDT 2003
On Thu, Aug 07, 2003 at 07:25:17AM -0400, David Corbin wrote:
> Actually, it doesn't say anything useful. But I can share some more
> information. The problem is that I ssh to O as myself, and su to root. If I
> don't su, or if I ssh AS root, it works. Is there a solution that doesn't
> involve ssh-ing as root? (I'm not very xauth familiar)
Yes. After you su, set the environment variable XAUTHORITY to point to
the .Xauthority file in your ordinary user's directory. E.g.:
export XAUTHORITY=/home/david/.Xauthority
Substitute david for your username, of course. Assuming this works, you
can add this line to your .bash_profile (or .profile, or .login,
whichever is appropriate for your shell):
export XAUTHORITY=${HOME}/.Xauthority
Then when you su the XAUTHORITY variable will be inherited, as long as
you don't "su -".
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list