Bug#312937: gksudo works badly for commands with NOPASSWD

Gustavo Noronha Silva Gustavo Noronha Silva <kov@debian.org>, 312937@bugs.debian.org
Wed, 15 Jun 2005 10:24:38 -0300


--=-VzLU3neKhLdQO367qZQR
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Em S=C3=A1b, 2005-06-11 =C3=A0s 08:40 +1000, Martin Schwenke escreveu:
[...]
>   2. The password dialog appears.  :-(
>=20
>      If I click OK or press the Enter key the password dialog
>      disappears and another xterm window opens.
>=20
>      If I click Cancel I don't get another xterm.
>=20
> The password dialog should not reappear!


indeed. I was going to mark this unreproducible after testing
with /bin/ls when I decided to try with xterm specifically. Then I got
the same results you had. With gnome-terminal I have even more funny
behavior, as the window appear just a second after the gnome-terminal
one.

> I also see the following error each time an xterm opens:
>=20
>   Warning: Tried to connect to session manager, Authentication Rejected, =
reason : None of the authentication protocols specified are supported and h=
ost-based authentication failed

This is because gksu cleans the environment. You can use the -k option
to keep it, but the X auth magic may not work in some cases if you do
that.

Let's see what I can do.

Thanks!

--=20
kov@debian.org: Gustavo Noronha <http://people.debian.org/~kov>
Debian:  <http://www.debian.org>  *  <http://www.debian-br.org>


--=-VzLU3neKhLdQO367qZQR
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBCsCwWt1anjIgqbEsRAm+eAJ97Qo5u/jZ1zCkAIADrqFjAnJpSaACgvCBs
k3X2faFG4NkIo16evjzUH6Q=
=Fw9F
-----END PGP SIGNATURE-----

--=-VzLU3neKhLdQO367qZQR--