"ssh -X root, then su -" don't bring terminal

GS R gsrlinux at gmail.com
Mon Sep 22 09:52:20 UTC 2008


Marcelo M. Garcia wrote:
> Hi
>
> I'm trying to test the installation of a software in HP-UX (B.11.11). 
> To do that, I'm logging in as root[1], then changing to the user[2]. 
> But after changing I could not export the terminal[3]. But if I try 
> the same using Opensuse 11.0, everything works fine.
>
> In my machine, I issue the command "xhost +", but it doesn't make 
> difference.
>
> Does anyone have a hint of what going on?
>
> thanks
>
> Marcelo
>
>
>
> [1] ssh -X root at muggle
> [2] su - lu
> [3]
> lu [muggle] ~ >    xterm
> xterm Xt error: Can't open display: %s
>
Hi Marcelo

Try this:
[1] ssh -X root at muggle  (Make sure X11Forwarding is enabled in your ssh 
server).
[2] xhost +
[3] su - lu
[4] export display:0.0
[5] lu [muggle] ~ >    xterm

Thanks
Gowrishankar Rajaiyan




More information about the fedora-list mailing list