• A-Z
  • Directory
  • myUVM
  • Loading search...

The secrets behind the wizardry

Playing with xauth

Posted: August 25th, 2010 by fcs

You have ssh’d to a server and have tunneled X back, but you have to do work in an X application as a service account and you have to use sudo to get to that account.

$ echo $DISPLAY | sed "s,localhost,`hostname`/unix," | xargs xauth list
bumrap.example.com/unix:10 MIT-MAGIC-COOKIE-1 _hex_string_
$ sudo su - service_account
$ xauth add _the_output_from_the_first_command_string_

Contact Us ©2010 The University of Vermont – Burlington, VT 05405 – (802) 656-3131
Skip to toolbar