Skip to content

Instantly share code, notes, and snippets.

@D4R4
Created July 16, 2021 08:59
Show Gist options
  • Save D4R4/60ae8d778ae9ab1294b04a1f850cfb18 to your computer and use it in GitHub Desktop.
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
# 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