Created
July 16, 2021 08:59
-
-
Save D4R4/60ae8d778ae9ab1294b04a1f850cfb18 to your computer and use it in GitHub Desktop.
Reapply X Window xauth token to allow for GUI apps to open when 'su' as another user
This file contains hidden or 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
# xauth list $DISPLAY | |
node01.tester.com/unix:10 MIT-MAGIC-COOKIE-1 dacbc5765ec54a1d7115a172147866aa | |
# echo $DSIPLAY | |
localhost:10.0 | |
# sudo su - [user] | |
# xauth add node01.tester.com/unix:10 MIT-MAGIC-COOKIE-1 dacbc5765ec54a1d7115a172147866aa | |
# export DISPLAY=localhost:10.0 | |
# xclock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment