[X2Go-Dev] [PATCH] xauth file location mismatch in x2gostartagent

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Wed Feb 15 22:57:46 CET 2012


Hi Milan,

On Mi 15 Feb 2012 21:23:56 CET Milan Knížek wrote:

> Hello,
>
> the /usr/bin/x2gostartagent script does not sufficiently specify the
> location of $XAUTHORITY file for the xauth command, while the command
> line for starting x2goagent refers to a specific location
> $HOME/.Xauthority.
>
> Usually, this works, because if nothing is specified on the command
> line for xauth and the $XAUTHORITY variable is not defined, it falls
> back to $HOME/.Xauthority.
>
> Nonetheless, recent GDM versions set XAUTHORITY
> to /var/run/gdm/auth-for-$USER-blabla/database.
>
> As a result, when opening a shadow session as another
> user, /usr/bin/x2gostartagent adds the cookie to $XAUTHORITY
> (/var/run/gdm...) and then starts x2goagent -auth $HOME/.Xauthority,
> which fails obviously.
>
>
> The attached patch removes the -f $HOME/.Xauthority parameter from the
> x2goagent command line to resolve the problem. It also removes a
> redundant '-S' parameter (there is already $SESSION_TYPE there).
>
> Can users of other distributions or display managers test if it does not
> break something else? (It works on Arch Linux with GDM and Xfce.)
>
> Regards,
>
> Milan

To me, your patch makes sense...

Alex? Others? Comments?

Mike


-- 

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20120215/2f532fa2/attachment.pgp>


More information about the x2go-dev mailing list