Created
January 22, 2020 22:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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