Playing with xauth

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 $ […]