Bug 267399 - kdesu does not care about /etc/sudoers
Summary: kdesu does not care about /etc/sudoers
Status: RESOLVED DUPLICATE of bug 400903
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: KDE4 Workspace (show other bugs)
Version: Alpha 2
Hardware: i686 openSUSE 10.2
: P3 - Medium : Enhancement with 5 votes (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 402547
  Show dependency treegraph
 
Reported: 2007-04-24 09:41 UTC by Elmar Stellnberger
Modified: 2009-03-02 19:51 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elmar Stellnberger 2007-04-24 09:41:15 UTC
Not only sudo but also kdesu should take care about the /etc/sudoers file.
This will be especially useful when performing online updates via SuseUpdater. An entry for "/sbin/yast2 online_update" should also relieve from typing the root pwd when using the graphical frontend rather than the text interface. This will of course also be possible if SuseUpdater tried a sudo before invoking kdesu, which would however pose a specific and therefore less desirable solution.
  At the moment something seems to be completely messed with kdesu in OpenSuse10.2, because it does not even accept correctly typed passwords like su does!
Comment 1 Dirk Mueller 2007-05-09 12:09:05 UTC
kdesu uses sudo with 10.2. there was a bug with yast that it messed up sudoers. please attach /etc/sudoers and describe as which user you're logged in and typing the password of which user. thanks. 
Comment 2 Dirk Mueller 2007-05-22 10:11:12 UTC
ping
Comment 3 Dirk Mueller 2007-09-17 09:53:54 UTC
see comment #1
Comment 4 Elmar Stellnberger 2007-12-19 12:06:27 UTC
> tail -n 1 /etc/sudoers
elm     ALL = (root) NOPASSWD: /sbin/ifconfig , ...

logged in as elm;
'kdesu ifconfig' -> password box
'sudo ifconfig' -> immediate exec

  A resolution will be highly valuable since appropriate changes to the OpenSuse-Updater are on the way (Bug #346976).
Comment 5 Dirk Mueller 2008-01-10 15:55:59 UTC
okay, but you can start with kdesu just fine, right, except that it asks for a password?

so the request is: do not show the password prompt if sudo would allow without password?
Comment 6 Elmar Stellnberger 2008-01-10 16:26:52 UTC
Yip; Exactly - nothing more than this!
Comment 7 Elmar Stellnberger 2008-01-10 16:30:27 UTC
Yep!
Comment 8 Dirk Mueller 2008-03-13 15:24:46 UTC
I agree about that. probably in the 11.0 timeframe. 
Comment 9 Lubos Lunak 2008-05-02 12:41:34 UTC
Are you going to work on this? If not, then please do not play with priorities of those who do. And kdesu no longer uses sudo, so this is now void.
Comment 10 Elmar Stellnberger 2008-05-02 19:30:48 UTC
  Lubos, you can believe me, if I only had the opprotunity, I would implement all of it - all of the kwin and kdesu bugs/enhancements. Unfortunately I am deerly required to work on something else at the moment.
  The reason why I have assigned a priority to that simply is because another request, that one for the SuseUpdater, which is by itself already resolved, depends on it. Perhaps it is not the task of the people from KDE to implement this, for it may not be of great concern outside the Suse-project.

  Nevertheless, my transeunt regards concern those people who have already voluntary invested some or even considerable effort in testing the ZENworks package management frontend(as shipped with 10.1&10.2) and will now, as the next major release namely 10.3 is impendent, have to notice that some of their most liked features simply have disappeared in the consecutive, merely yast based release of the package management frontend to libzypp.
  Consequently I have lately assigned priorities to all requests concerning potential feature drawbacks in the pkg.mgm.frontend, that may affect the average, engaged user as well as an enhancement(Enh 380292) as a potential candy for the double-testing effort. The OpenSuse project ought to keep and encourage its community of practice (Lubos, you simply wanted me to explicitly state this; that you can confess quiescently.). Thourough testing as well as the provision of an intelligible, concludent set of features, part of which can be provided by the soc.cop., may and will be key issues for the success of a software product. It is not a kudos if the final release of a distro greets with the backtrace of the screensaver, as was the case for Su10.3/kde.

  As long as no one is against it I will continue to assign priorities(at least up to  the level of three) if I believe that a request is of increased importance to the OpenSuse-project, simply because that feature has been activated for me; - and a vote for those which I would appreciate to become resolved in regard to my own flavour and purpose.

Comment 11 Lubos Lunak 2008-05-12 14:37:19 UTC
Priorities are for people working on bugreports. And what features specifically should now disappear? I don't see any regressions.

Comment 12 Dirk Mueller 2008-06-05 14:58:05 UTC
Elmar?
Comment 13 Forgotten User gxNgjAWAcH 2008-07-03 16:39:08 UTC
I can confirm that in 10.3 kdesu was honoring sudoers, while it changed in 11.0 (kde 3.5), and it aways requires root password. sudo works as expected (asks for user's password).

I'd highly appreciate if the old (10.3) behavior is back.

Thanks

Comment 14 Lubos Lunak 2008-07-07 14:00:57 UTC

*** This bug has been marked as a duplicate of bug 400903 ***
Comment 15 Elmar Stellnberger 2008-08-29 10:42:12 UTC
Still an issue!

# tail -1 /etc/sudoers
elm     ALL = (root) NOPASSWD: /sbin/yast2 inst_source

> kdesu /sbin/yast2 inst_source
prompts for password (as invoked by a shell or opensuseupdater-kde) while
> sudo /sbin/yast2 inst_source
is executed immediately
Comment 16 Elmar Stellnberger 2008-08-29 10:43:19 UTC
.
Comment 17 Elmar Stellnberger 2008-09-20 14:45:02 UTC
Very important and still not resolved;
if not made available by a patch for the mainline distro it should at least be provided for Latest_KDE_3_environment_for_released_SUSE_distributions.
Comment 18 Lubos Lunak 2009-01-08 15:02:19 UTC

*** This bug has been marked as a duplicate of bug 400903 ***
Comment 19 Elmar Stellnberger 2009-03-02 19:51:31 UTC
Another KDE program, namely kdesudo at kde-apps.org now exactly provides the desired functionality:
http://kde-apps.org/content/show.php/KdeSudo?content=72106