Problem:

 

I am able to use putty and X11forwarding to establish a Xwindows. however, when I su – into another id, X session broke.

 

Solution:

 

My id is myid and I need to su into wadadm

$ echo $DISPLAY
localhost:10.0

Log on as root in another sesssion:

# cp ~myid/.Xauthority ~wasadm/.Xauthority
# chown wasadm.wasadm ~wasadm/.Xauthority
# chmod 600 ~wasadm/.Xauthority

Back to myid:

myid [testserver] $ su - wasadm

myid [testserver] $ export DISPLAY=localhost:10.0

wasadm [testserver] $ xclock &

We should now see the Xclock is running on your local screen from use id wasadm.