linux:xforwarding
Running GUI over ssh with X forwarding and su
If you need to run jnbSA as root from an su session, it won't work without some prior steps. This is due to the MIT magic cookie not being forwarded from your user session to the root su session.
This can be fixed by “forwarding” manually.
- as your ldap user, run
echo $DISPLAYand observe the X session id. - run
xauth listto see the cookie's in use. - run
sudo su -land check the $DISPLAY variable is the same. - run
xauth add <cookie>' where <cookie> is the cookie above corresponding to your xsession, so if your session is localhost:10.0, you would use <cookie>:10 - Test withxtermorxclockbefore trying something more ambitious. - If this works, cd to/usr/openv/netbackup/binand run./jnbSA &. You will see the session logfile being created, you can view this with atail -f''. - Log in to the GUI as required user, not your LDAP account.
linux/xforwarding.txt · Last modified: by 127.0.0.1
