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
-- http://www.milan-knizek.net/ About linux and photography (Czech only) O linuxu a fotografování
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@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Milan,
On Mi 15 Feb 2012 21:23:56 CET Milan Knížek wrote:
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).
This part has been committed as is: http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=c4a1ea405879b07d...
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.
I have modified your patch slightly, could you test my patch if that
works for you???
http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=51771f645ffa60d5...
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
V Sat, 18 Feb 2012 00:47:38 +0100 Mike Gabriel <mike.gabriel@das-netzwerkteam.de> napsáno:
Hello Mike,
Hi Milan,
On Mi 15 Feb 2012 21:23:56 CET Milan Knížek wrote:
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).
This part has been committed as is: http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=c4a1ea405879b07d...
Thanks.
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.
I have modified your patch slightly, could you test my patch if that
works for you??? http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=51771f645ffa60d5...
Should we want -xauth parameter for x2goagent (xserver), wouldn't it be consistent to add the same for xauth commands? (Patch attached.)
P.S. It works for me with the extra patch and also w/o it.
http://www.milan-knizek.net/ About linux and photography (Czech only) O linuxu a fotografování
Hi Milan,
On So 19 Feb 2012 16:21:56 CET Milan Knížek wrote:
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.
I have modified your patch slightly, could you test my patch if that works for you??? http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=51771f645ffa60d5...
Should we want -xauth parameter for x2goagent (xserver), wouldn't it be consistent to add the same for xauth commands? (Patch attached.)
P.S. It works for me with the extra patch and also w/o it.
yes, makes sense... http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=4f8e5f05cf758b6b...
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Am 18.02.2012 00:47, schrieb Mike Gabriel:
Hi Milan,
On Mi 15 Feb 2012 21:23:56 CET Milan Knížek wrote:
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).
This part has been committed as is: http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=c4a1ea405879b07d...
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.
I have modified your patch slightly, could you test my patch if that works for you??? http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=51771f645ffa60d5...
Greets, Mike
Have you tested if desktop shadowing steel works in debian/ubuntu after that ? Unfortunately at the moment I have no time to do this.
-- Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Hi Alex,
On Mo 20 Feb 2012 08:14:58 CET Oleksandr Shneyder wrote:
Am 18.02.2012 00:47, schrieb Mike Gabriel:
Hi Milan,
On Mi 15 Feb 2012 21:23:56 CET Milan Knížek wrote:
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).
This part has been committed as is: http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=c4a1ea405879b07d...
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.
I have modified your patch slightly, could you test my patch if that works for you??? http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=51771f645ffa60d5...
Greets, Mike
Have you tested if desktop shadowing steel works in debian/ubuntu after that ? Unfortunately at the moment I have no time to do this.
With .Xauthority in $HOME/.Xauthority the patches work for desktop
shadowing. Just tested.
Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...