Bug 157276 - kdesu should care about /etc/sudoers
Summary: kdesu should care about /etc/sudoers
Status: RESOLVED DUPLICATE of bug 115898
Alias: None
Product: kdesu
Classification: Applications
Component: kdesud (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-06 19:21 UTC by Elmar Stellnberger (AT/K)
Modified: 2010-11-06 20:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elmar Stellnberger (AT/K) 2008-02-06 19:21:12 UTC
Version:           Unbekannt (using 3.5.7 "release 72.6" , openSUSE 10.3)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.22.16-0.2-default

It would be very nice if kdesu took care about /etc/sudoers as sudo does. Kdesu already does not prompt for a password if invoked as root. Additionally kdesud should check if /etc/sudoers allows the required program to be run as root by the user. Alternatively as a temporary workaround kdesu could directly try to run the required program by 
sudo -S "prog params" </dev/null 
at first and thereupon only prompt for the password to run the program itself in the case that sudo has returned an error.
Comment 1 Elmar Stellnberger (AT/K) 2008-02-07 17:25:12 UTC
  This is really an issue. Just think of the many little programmes like kwifimanager, update or package management tools, admin-tools or any other sudoer candidate requiring root privileges. All of them could either be launched automatic on startup without having to type a password or even later on under the circumstances specified in /etc/sudoers. 
Comment 2 Elmar Stellnberger (AT/K) 2008-08-29 12:34:33 UTC
still an issue, especially for the opensuseupdater-kde.
Comment 3 Elmar Stellnberger (AT/K) 2008-11-26 17:55:30 UTC
As promised at https://bugzilla.novell.com/show_bug.cgi?id=400903
kdesu should now be able to make use of /etc/sudoers by the following setting:
kwriteconfig
--file kdesurc --group super-user-command --key super-user-command sudo

However that simply does not work for my version of kdesu:
> /usr/bin/kdesu -c /sbin/yast2 piwo
 ---> still prompts for password
> sudo /sbin/yast2 piwo
 ---> works
> cat ~/.kde4/share/config/kdesurc
[super-user-command]
super-user-command=sudo
> rpm -qf /usr/bin/kdesu
kdebase4-runtime-4.0.4-26.22
Comment 4 Elmar Stellnberger (AT/K) 2008-12-03 08:06:32 UTC
Very important, since opensuseupdater-kde will rely on it. If possible please fix prior to the Opensuse 11.0 release.
Comment 5 Elmar Stellnberger (AT/K) 2008-12-03 08:07:06 UTC
11.1
Comment 6 Giedrius 2009-08-21 18:27:36 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Elmar Stellnberger (AT/K) 2009-08-23 11:05:17 UTC
 Kdesudo at kde-apps.org promises to provide the
desired functionality:
http://kde-apps.org/content/show.php/KdeSudo?content=72106
 Perhaps we should inlcude its functionality into kdesu or install and use this app by default in place of kdesu.
Comment 8 Oswald Buddenhagen 2010-11-06 20:37:04 UTC
effectively a dupe - don't bother with the details.
and we're definitely not going to mess with sudoers. ;)

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