<font color='black' size='2' face='arial'>

<div> <br>

</div>



<div> <br>

</div>



<div> <br>

</div>



<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>

From: Stefan Baur <X2Go-ML-1@baur-itcs.de><br>

To: x2go-user <x2go-user@lists.x2go.org><br>

Sent: Mon, Jul 11, 2016 10:58 am<br>

Subject: Re: [X2Go-User] X applications fail after su - on x2go connection<br>

<br>

Am 11.07.2016 um 15:15 schrieb <a removedlink__112b8d8e-abdf-4c81-89e2-0f4089b7fe92__href="mailto:webe3vt@aim.com">webe3vt@aim.com</a>:<br>

> When I am connected to a Debian server through x2go, my X applications<br>

> work.  When I su - user2 then try any X application they don't work. <br>

> For example emacs will start in terminal mode and java applications give<br>

> errors such as<br>

> java.lang.InternalError: Can't connect to X11 window server using ':52'<br>

> as the value of the DISPLAY variable<br>

> <br>

> When I echo $DISPLAY before the su -, :52 is the correct display.<br>

> <br>

> I have several other machines that do not have this problem.  How do I<br>

> fix it so that X works through x2go after su -.<br>

<br>

There used to be a command "sux" that would allow this, but it's been<br>

removed from Debian - <a removedlink__112b8d8e-abdf-4c81-89e2-0f4089b7fe92__href="https://packages.debian.org/search?keywords=sux" target="_blank">https://packages.debian.org/search?keywords=sux</a><br>

<br>

Maybe you'll find some pointers here:<br>

<a removedlink__112b8d8e-abdf-4c81-89e2-0f4089b7fe92__href="https://en.wikipedia.org/wiki/X_Window_authorization#Cookie-based_access" target="_blank">https://en.wikipedia.org/wiki/X_Window_authorization#Cookie-based_access</a><br>

<br>

Kind Regards,<br>

Stefan Baur<br>

<br>

<br>

-- <br>

BAUR-ITCS UG (haftungsbeschränkt)<br>

Geschäftsführer: Stefan Baur<br>

Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364<br>

Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243<br>

<br>

_______________________________________________<br>

x2go-user mailing list<br>

x2go-<a removedlink__112b8d8e-abdf-4c81-89e2-0f4089b7fe92__href="mailto:user@lists.x2go.org">user@lists.x2go.org</a><br>

<a removedlink__112b8d8e-abdf-4c81-89e2-0f4089b7fe92__href="http://lists.x2go.org/listinfo/x2go-user" target="_blank">http://lists.x2go.org/listinfo/x2go-user<br>
<br>
<br>
<font size="2">Thank you.  I used to use sux until Debian took it away.  You triggered a memory of what I did to make X work after sux was taken away.<br>
<br>
I add this to /etc/pam.d/su<br>
<br>
session    optional   pam_xauth.so<br>
<br>
I found the information in the following links when I was looking for an sux replacement.<br>
<br>
https://askubuntu.com/questions/428284/what-is-a-good-alternative-to-the-sux-command<br>
<br>
https://wiki.archlinux.org/index.php/Running_X_apps_as_root<br>
<br>
<br>
When I did it on the machine that was not working, it allowed X to start working after su.<br>
<br>
Brent Elmer<br>
<br>
<br>
</font></a></div>

</font>