<div dir="ltr">Great!<div><br></div><div>I have this so far:</div><div><br></div><div><div>mark@swordfish:~$ echo $DISPLAY</div><div>swordfish:11.0</div><div>mark@swordfish:~$ xauth list</div><div>swordfish/unix:11 MIT-MAGIC-COOKIE-1 00607ba4fc7c6a2ea9debc6ad5776376</div><div>swordfish/unix:10 MIT-MAGIC-COOKIE-1 892fa0c2d392d8517dd525a7bcdc212b</div><div><a href="http://swordfish.phillipsoasis.com:1">swordfish.phillipsoasis.com:1</a> MIT-MAGIC-COOKIE-1 ce767df80405a8d280be4e258f06fed8</div><div>swordfish/unix:1 MIT-MAGIC-COOKIE-1 ce767df80405a8d280be4e258f06fed8</div><div><a href="http://swordfish.phillipsoasis.com:10">swordfish.phillipsoasis.com:10</a> MIT-MAGIC-COOKIE-1 d635d049952882222e1b238f7a8d1fbd</div><div><a href="http://swordfish.phillipsoasis.com:11">swordfish.phillipsoasis.com:11</a> MIT-MAGIC-COOKIE-1 cdb5f42e697aed89f9ff934ae36df625</div></div><div><br></div><div>So, which magic cookie goes with $DISPLAY=swordfish:11.0?</div><div><br></div><div>Also, how do I make this permanent? Or, do I have to export the DISPLAY and copy the magic cookie every time I su to root?</div><div><br></div><div>Mark</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 18, 2018 at 5:31 PM, James Mcphee <span dir="ltr"><<a href="mailto:jmcphe@gmail.com" target="_blank">jmcphe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">ok. So you start on box1, ssh -X to box2. echo $DISPLAY. xauth list. su to user2 on box2. export DISPLAY=<the display from user1>. xauth add $DISPLAY . <the hash from the correct display from xauth list>. Launch X application.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 18, 2018 at 5:21 PM, Mark Phillips <span dir="ltr"><<a href="mailto:mark@phillipsmarketing.biz" target="_blank">mark@phillipsmarketing.biz</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">There is an application I need to run as root on my Linode server, but it has to run in a gui. <div><br></div><div>I have ssh and X11 forwarding set up between my Ubuntu 14.04 system and my Linode (swordfish). It works just great for a non-root user (xcalc, xconsole, the application I need to run, etc). However, when I try to run the application on the server as root, I get the error message "X11 connection rejected because of wrong authentication." For xcalc running as root, I get</div><div><div>X11 connection rejected because of wrong authentication.</div><div>Error: Can't open display: swordfish:10.0</div><div><br></div><div>I have tried all sorts of google solutions - copying the user's .Xauthority to /root/ (also changing the ownership and permissions). But I just can't seem to log into swordfish as a normal user using ssh -X, su to root, and get the X11 forwarding to work. </div><div><br></div><div>I also went so far as to install vnc4server on the Linode, xfce window manager, and vnc4viewer on my Ubuntu machine. That all works when I access the vnc server as a normal user, but I can't get any X11 apps to run as root (ie from a root command line in a terminal in the vnc window). The error message when I try to run xcalc or other X11 apps is "No protocol specified. Can't open display :1".</div><div><br></div><div>What are the special Linux guru magical incantations/spells to make X11 forwarding work for root?</div><div><br></div><div>Thanks!</div><span class="m_4273768751586013288HOEnZb"><font color="#888888"><div><br></div><div>Mark</div><div><br></div></font></span></div></div>
<br></div></div>------------------------------<wbr>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.or<wbr>g</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/mail<wbr>man/listinfo/plug-discuss</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_4273768751586013288gmail_signature" data-smartmail="gmail_signature">James McPhee<br><a href="mailto:jmcphe@gmail.com" target="_blank">jmcphe@gmail.com</a></div>
</font></span></div>
<br>------------------------------<wbr>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.<wbr>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer" target="_blank">http://lists.phxlinux.org/<wbr>mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>