[indiana-discuss] cannot ssh in as root to localhost

Mark Phalan mbp at opensolaris.org
Tue Apr 1 04:11:18 PDT 2008


On Mon, 2008-03-31 at 11:53 +0200, Mark Phalan wrote:
> On Mon, 2008-03-31 at 02:37 -0700, Johnny Koen wrote:
> > But how can I get around installing applications as root and use X
> 
> Install applications by 'su'ing to root.
> 
> Run X applications (locally) as root by running 
> 
> $ xhost +si:localuser:root
> $ su -
> # <X application>

It was pointed out to me that I was missing a step. Root needs to set
the DISPLAY variable to be that of the original user before being able
to launch an X app.

-M



More information about the indiana-discuss mailing list