
{"id":4940,"date":"2012-07-10T05:44:00","date_gmt":"2012-07-10T05:44:00","guid":{"rendered":""},"modified":"2026-04-18T22:47:51","modified_gmt":"2026-04-18T22:47:51","slug":"x11-forwarding-and-su-sudo","status":"publish","type":"post","link":"https:\/\/hellem.org\/wblog\/2012\/07\/10\/x11-forwarding-and-su-sudo\/","title":{"rendered":"X11 Forwarding and su\/sudo"},"content":{"rendered":"<p>Ever been in the situation where you log on to a server as one user having X11 enabled, but then need to sudo to another one &#8211; and voila, your X11-sesison is long gone&#8230;<\/p>\n<p>Solution provided here http:\/\/brandonhutchinson.com\/wiki\/X11_Forwarding_and_su\/sudo<\/p>\n<p>I did as root<br \/>\n<!-- codeblock lang=\"bash\" line=\"1\" --><\/p>\n<pre><code>\r\ncd ~\r\nmv .Xauthority .Xauthority_old\r\nln -s ~diagnostics\/.Xauthorithy .Xautorithy<\/code><\/pre>\n<p><!-- \/codeblock --><br \/>\nand it all worked fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever been in the situation where you log on to a server as one user having X11 enabled, but then need to sudo to another one &#8211; and voila, your X11-sesison is long gone&#8230; Solution provided here http:\/\/brandonhutchinson.com\/wiki\/X11_Forwarding_and_su\/sudo I did as root cd ~ mv .Xauthority .Xauthority_old ln -s ~diagnostics\/.Xauthorithy .Xautorithy and it all worked [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47],"tags":[],"class_list":["post-4940","post","type-post","status-publish","format-standard","hentry","category-work-geek"],"_links":{"self":[{"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/posts\/4940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/comments?post=4940"}],"version-history":[{"count":1,"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/posts\/4940\/revisions"}],"predecessor-version":[{"id":12673,"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/posts\/4940\/revisions\/12673"}],"wp:attachment":[{"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/media?parent=4940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/categories?post=4940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/wp-json\/wp\/v2\/tags?post=4940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}