Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291837 - x11-libs/libgksu-2.0.12, gksudo ignores NOPASSWD and always promts for password
Summary: x11-libs/libgksu-2.0.12, gksudo ignores NOPASSWD and always promts for password
Status: RESOLVED DUPLICATE of bug 298289
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Version: unspecified
Hardware: All Linux
: High normal (vote)
Target Milestone: ---
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 290733
  Show dependency tree
 
Reported: 2009-11-04 13:06 UTC by redneb
Modified: 2010-01-20 12:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description redneb 2009-11-04 13:06:31 UTC
In my /etc/sudoers, I have something like that:
  mainuser ALL = (user2) NOPASSWD: /path/to/program
so that I can do
  gksudo -u user2 /path/to/program
and execute the (graphical) program as user2 without having to enter my password. When I upgraded x11-libs/libgksu from 2.0.9 to 2.0.12, this stopped working. It always prompts for my password.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2009-11-07 14:54:30 UTC
Please take a look on patch from:
http://bugs.gentoo.org/show_bug.cgi?id=290733#c6

Good luck!
Comment 2 redneb 2009-11-07 22:36:11 UTC
Yes, your patch solves the issue with 2.0.12
Comment 3 Pacho Ramos gentoo-dev 2009-11-08 12:46:12 UTC
OK, thanks a lot for trying it :-)

Dang, Gnome Team, please take a look on patch
http://bugs.gentoo.org/show_bug.cgi?id=290733#c6

A summary about the problem can be seen from http://bugs.gentoo.org/show_bug.cgi?id=290733#c3

Sorry a lot to people affected as I was the culprit suggesting libgksu update wrongly, as I don't use sudo at all and only use gksu for opening root apps using "su" instead

Now, I am not sure about reverting 2.0.12 to testing or simply stable directly a 2.0.12-r1 release including the patch, as patch seems to simply revert to 2.0.9 sudo behavior and is used for months under ubuntu (that still uses gksu a lot) without problems
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-11-08 16:35:06 UTC
Probably patch and quick-stable a -r1.  I don't have time to look at this today; maybe someone will beat me to it?
Comment 5 dE 2009-12-01 03:25:48 UTC
So you can swiftly mark libgksu-2.0.12 as unstable so it doesn't get installed (like it did again in my case when emptying the tree) and the bug doesn't reappear!
Comment 6 redneb 2009-12-01 03:32:39 UTC
I've been using 2.0.12+patch for a little more than 3 weeks now with now problems whatsoever. I propose to do what Daniel suggested (comment #4).
Comment 7 Gilles Dartiguelongue gentoo-dev 2009-12-09 22:41:20 UTC
For the record, I can't reproduce this problem at all. with my setup or with example in bug report, once I typed the password once, it won't ask me again. Maybe this is not only related to libgksu ?
Comment 8 redneb 2009-12-10 00:20:35 UTC
(In reply to comment #7)
> ... once I typed the password once ...

The problem appears when you have the NOPASSWD option in your sudoers. With this option it should not ask for a password at all.
Comment 9 Gilles Dartiguelongue gentoo-dev 2010-01-18 21:31:43 UTC
Is this problem solved since the resolution of bug #298289 (libgksu-2.0.12-r1 ?)
Comment 10 redneb 2010-01-19 03:57:55 UTC
(In reply to comment #9)
> Is this problem solved since the resolution of bug #298289 (libgksu-2.0.12-r1
> ?)
> 

Yes, with libgksu-2.0.12-r1 everything works as expected.
Comment 11 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-01-20 12:45:17 UTC
Thanks.

*** This bug has been marked as a duplicate of bug 298289 ***