From mike.gabriel@das-netzwerkteam.de  Wed Aug 20 12:57:31 2014
Received: (at 457) by bugs.x2go.org; 20 Aug 2014 10:57:33 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id CA9215DB17
	for <457@bugs.x2go.org>; Wed, 20 Aug 2014 12:57:31 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id BA9B6154F;
	Wed, 20 Aug 2014 12:57:30 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 3C82E3BBED;
	Wed, 20 Aug 2014 12:57:31 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id J8vvrmlENmbP; Wed, 20 Aug 2014 12:57:31 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id F19853B889;
	Wed, 20 Aug 2014 12:57:30 +0200 (CEST)
Received: from m-031.informatik.uni-kiel.de (m-031.informatik.uni-kiel.de
 [134.245.254.31]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Wed, 20 Aug 2014 10:57:30 +0000
Date: Wed, 20 Aug 2014 10:57:30 +0000
Message-ID: <20140820105730.Horde.SeiuhYTQmhlp89Ew8vpjqg6@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Michael DePaulo <mikedep333@gmail.com>, 457@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#457: Fwd: polkit-gnome-authentication-agent-1
 fails to start on specific distros
References: <CAMKht8iU9UAqcxRF-CgF6cvK=ADzwYEfrZTamTOVVUnsi4wnBA@mail.gmail.com>
 <CAMKht8i6Yq-exedt6JtRAKxCwEZUmPhckKfMp48qjj_56vWD7Q@mail.gmail.com>
In-Reply-To: <CAMKht8i6Yq-exedt6JtRAKxCwEZUmPhckKfMp48qjj_56vWD7Q@mail.gmail.com>
User-Agent: Internet Messaging Program (IMP) H5 (6.2.0)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 134.245.254.31
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101
 Firefox/31.0 Iceweasel/31.0
Content-Type: multipart/signed; boundary="=_jUmZUzRYTGAtEGGKyAiBjA1";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0

This message is in MIME format and has been PGP signed.

--=_jUmZUzRYTGAtEGGKyAiBjA1
Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Michael,

On  Sa 22 M=C3=A4r 2014 16:44:34 CET, Michael DePaulo wrote:

> 5. polkit-gnome-authentication-agent-1 is started as gdm, but it
> should be started as the user also.
>
> Test system:
> CentOS 6.5 64-bit
> x2goserver: 4.0.1.13
> x2goserver-xsession: 4.0.1.13 (same behavior when this package is=20=20
>=20not installed)
> nx-libs: 3.5.0.22
> GNOME
> (This distro uses ConsoleKit, not systemd-logind)
>
> [batmin@mothership-el6 ~]$ pkexec gpk-application
> Error executing command as another user: No authentication agent was foun=
d.
> [batmin@mothership-el6 ~]$ ps -ef | grep agent
> gdm        653     1  0 11:06 ?        00:00:00 /usr/bin/spice-vdagent
> gdm        671   645  0 11:06 ?        00:00:00
> /usr/libexec/polkit-gnome-authentication-agent-1
> batmin    1246     1  7 11:08 ?        00:00:01
> /usr/lib64/nx/../x2go/bin/x2goagent -extension XFIXES -nolisten tcp
> -dpi 96 -D -auth /home/batmin/.Xauthority -geometry 1024x768 -name
> X2GO-batmin-52-1395500884_stDGNOME_dp32 :52
> root      1532     1  0 Mar21 ?        00:00:01 /usr/sbin/spice-vdagentd
> batmin    1710     1  0 11:08 ?        00:00:00 /usr/bin/spice-vdagent
> batmin    2032  2015  0 11:08 pts/0    00:00:00 grep agent
> [batmin@mothership-el6 ~]$ /usr/libexec/polkit-gnome-authentication-agent=
-1
>
> (polkit-gnome-authentication-agent-1:2035): polkit-gnome-1-WARNING **:
> Unable to determine the session we are in: Remote Exception invoking
> org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on
> /org/freedesktop/ConsoleKit/Manager at name
> org.freedesktop.ConsoleKit:
> org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup
> session information for process '2035'
> org.freedesktop.ConsoleKit.Manager.GeneralError
> Unable%20to%20lookup%20session%20information%20for%20process%20%272035%27
> [batmin@mothership-el6 ~]

I assume that this GNOME polkit daemon is from GNOMEv2(?).

Any chance you can provide me with a link to the source code?

Before you do this, please check if the X2Go Session is using=20=20
x2goserver-xsession=20and if the session is launched (via xinitrc or so)=20=
=20
with=20prefixed ck-launch-session.

In Debian/Ubuntu, this is handled via=20=20
/etc/X11/Xsession.d/90consolekit.=20Something equivalent should exist=20=20
for=20RHEL-6 based distros.

Mike
--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

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

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x=
fb

--=_jUmZUzRYTGAtEGGKyAiBjA1
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJT9H8aAAoJEJr0azAldxsxcVUQAINjsiPxeS08oD3P8oUrVg9Q
mlRmz9CjB7eATEwyEdnll71HCH/+56ntNqHKZ7gPhCUJpWapAVCE6f5ITIU5LSW9
FWnJ263gkryGNSLL1X/JE6AmZIYAU48abLmIypU8d12g9J4TIxxGoKC20rLJ/gwI
AJSLrb44EM5/Jf+6Vclp4Y8jkDMv6Wrz3vFjqz5HpCJqsTEOEBifD58lir8lov4y
Lo4CViDKbkpeuUkYPWlUhZIZuLvdtBbSPEDU5S/7xkeAnRJmihy2oatFwBcepLUX
y9EjYdSXDhQOqDlrLgYhtS2g0fPVz0efRyBL4oBN5LMHBQ2HMvUX1P5vfsZn5jpv
1uCgbSlMW+hPLqG7eIhBe0hd98Hg0GMy9nklClQ08ER7CFc+bKYK0fmNgt1W80MX
fvuiO/MpI8qiqailXEKIj7kZ6mDWNd1S4PvL8kknAzJZBSU384rog4REcjV3FJu/
ZRTMaJWDmem4ufgqk72ZG3e0+mTnWiOSAwjdHM9LPVjmfbSxGmGNT685bJ5576vh
Rh78oRv3PwB5BguZQiTphG15WP3lp23T94oGtHrpmoZ5Tn7dk5u0ChMkZi6bIoZ/
MgG+bis87fRkzhfDbn4WGcvtvBay6veBIKoK77OVOg3Ct8s80LClRGZ/rlG2IiNZ
4Yaak7EbQET5fMZm8dK7
=HDOE
-----END PGP SIGNATURE-----

--=_jUmZUzRYTGAtEGGKyAiBjA1--

