| « Petters super fix it | Norwegian date format for JIRA » |
X11 Forwarding and su/sudo
Ever been in the situation where you log on to a server as one user having X11 enabled, but then need to sudo to another one - and voila, your X11-sesison is long gone...
Solution provided here http://brandonhutchinson.com/wiki/X11_Forwarding_and_su/sudo
I did as root
Code:
cd ~ | |
mv .Xauthority .Xauthority_old | |
ln -s ~diagnostics/.Xauthorithy .Xautorithy |
and it all worked fine.
1 comment
Comment from: Stian [Visitor]
$ xauth list
to find the key for your current DISPLAY, and then do the su, followed by
$ xauth add "key"
:)
24/08/12 @ 04:04
Comments are closed for this post.