{"id":7,"date":"2010-08-25T13:42:22","date_gmt":"2010-08-25T17:42:22","guid":{"rendered":"http:\/\/blog.uvm.edu\/fcs-wizardry\/?p=7"},"modified":"2010-08-25T13:44:43","modified_gmt":"2010-08-25T17:44:43","slug":"playing-with-xauth","status":"publish","type":"post","link":"https:\/\/blog.uvm.edu\/fcs-wizardry\/2010\/08\/25\/playing-with-xauth\/","title":{"rendered":"Playing with xauth"},"content":{"rendered":"<p>You have ssh&#8217;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.<\/p>\n<p><code><br \/>\n$ echo $DISPLAY | sed \"s,localhost,`hostname`\/unix,\" | xargs xauth list<br \/>\nbumrap.example.com\/unix:10 MIT-MAGIC-COOKIE-1 _hex_string_<br \/>\n$ sudo su - service_account<br \/>\n$ xauth add _the_output_from_the_first_command_string_<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have ssh&#8217;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 &#8220;s,localhost,`hostname`\/unix,&#8221; | xargs xauth list bumrap.example.com\/unix:10 MIT-MAGIC-COOKIE-1 _hex_string_ $ sudo su &#8211; service_account $ [&hellip;]<\/p>\n","protected":false},"author":57,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7674],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-xwindows"],"_links":{"self":[{"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":4,"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":11,"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/posts\/7\/revisions\/11"}],"wp:attachment":[{"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.uvm.edu\/fcs-wizardry\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}