Skip site navigation (1)Skip section navigation (2)
Date:      01 Aug 2003 10:52:34 -0400
From:      Dan Pelleg <daniel+bsd@pelleg.org>
To:        stan <stanb@panix.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: ssh/root and remote X sessiosn
Message-ID:  <u2sbrv9h1l9.fsf@gs166.sp.cs.cmu.edu>
In-Reply-To: <20030801143246.GA30259@teddy.fas.com>
References:  <20030801143246.GA30259@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
stan <stanb@panix.com> writes:

> I have my FreebSD machines set up in the current "preferred" (IE default)
> ssh/tty setup which prohibits remote ssh logins. So to get to root I ssh as
> my normal user, and su -. All is well, unless I need to run a client as
> root. Even manually setting the DISPLAY variable does not seem to allow
> this.
> 
> How can I make this work?
> 

You need to get xauth to work. Assuming you're ssh-ing as user USER, this
is an easy to to achieve this. Type this after the "su". For csh or tcsh:

setenv HOME ~USER

For bash it's "export HOME=~USER".

-- 

  Dan Pelleg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?u2sbrv9h1l9.fsf>