Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Created January 22, 2020 22:11
Show Gist options
  • Save Dillie-O/281480d3102ef17eeec63cc17114aed1 to your computer and use it in GitHub Desktop.
Save Dillie-O/281480d3102ef17eeec63cc17114aed1 to your computer and use it in GitHub Desktop.
[X11 forward for su] Update X11 forwarding for super user #shell #unix #x11
# 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment