Bug#312937: gksudo works badly for commands with NOPASSWD
Martin Schwenke
Martin Schwenke <martin@meltin.net>, 312937@bugs.debian.org
Sat, 11 Jun 2005 08:40:08 +1000
Package: gksu
Version: 1.2.5-3
Severity: normal
I add an item to /etc/sudoers so I can run it without a password:
martins ALL=(ALL) NOPASSWD: /usr/X11R6/bin/xterm
I then run it under gksudo:
gksudo /usr/X11R6/bin/xterm
I get the following weird behaviour:
1. The xterm window opens without requiring a password. Yay! I
close the xterm.
2. The password dialog appears. :-(
If I click OK or press the Enter key the password dialog
disappears and another xterm window opens.
If I click Cancel I don't get another xterm.
The password dialog should not reappear!
I also see the following error each time an xterm opens:
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
I don't get this error if I run sudo instead of gksudo.
Thanks...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-rc4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages gksu depends on:
ii libatk1.0-0 1.10.1-2 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libgksu1.2-0 1.2.6-3 library providing su and sudo func
ii libgksuui1.0-0 1.0.4-3 a graphical fronted to su library
ii libglib2.0-0 2.6.4-1 The GLib library of C routines
ii libgtk2.0-0 2.6.7-2 The GTK+ graphical user interface
ii libpango1.0-0 1.8.1-1 Layout and rendering of internatio
ii sudo 1.6.8p7-1.1 Provide limited super user privile
-- no debconf information