{"id":4228,"date":"2015-11-10T13:43:33","date_gmt":"2015-11-10T13:43:33","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=4228"},"modified":"2015-11-10T14:25:30","modified_gmt":"2015-11-10T14:25:30","slug":"x11-auth","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=4228","title":{"rendered":"X11 connection rejected because of wrong authentication"},"content":{"rendered":"<p><a href=\"http:\/\/jianmingli.com\/wp\/?p=724\">X11 connection rejected because of wrong authentication after sudo to another user<\/a><br \/>\n<a href=\"http:\/\/unix.stackexchange.com\/questions\/110558\/su-with-error-x11-connection-rejected-because-of-wrong-authentication\">\u201csu\u201d with error \u201cX11 connection rejected because of wrong authentication\u201d<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ xauth list | grep unix`echo $DISPLAY | cut -c10-12` &gt; \/tmp\/xauth\r\n$ sudo -s\r\n# xauth add `cat \/tmp\/xauth`\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>X11 connection rejected because of wrong authentication after sudo to another user \u201csu\u201d with error \u201cX11 connection rejected because of wrong authentication\u201d $ xauth list | grep unix`echo $DISPLAY | cut -c10-12` &gt; \/tmp\/xauth $ sudo -s # xauth add `cat \/tmp\/xauth`<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4228","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4228"}],"version-history":[{"count":3,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4228\/revisions"}],"predecessor-version":[{"id":4231,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4228\/revisions\/4231"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}