X11 forward for su

Last modified 12 months ago


After logging in as a normal user, change to the su account, but don't use
the '-' to preserve display values. Finally, append your users xauth settings
onto your own, which will include the "cookie" for X11 forwarding


sudo su
xauth add $(xauth -f ~[user]/.Xauthority list|tail -1)