Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124549 - 'sudo' USE flag for gnome-system-tools, etc., to support disabling root password
Summary: 'sudo' USE flag for gnome-system-tools, etc., to support disabling root password
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-01 12:05 UTC by Simon Ruggier
Modified: 2006-03-23 06:07 UTC (History)
1 user (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 Simon Ruggier 2006-03-01 12:05:36 UTC
What if I wanted to disable my root account with passwd -l, and use sudo to perform admin tasks.  In this situation, trying to use any of the shortcuts in the administration menu in gnome would be impossible, because the programs will prompt for a non-existent root password.  This could be supported with a USE flag by depending on gksu, and  prefixing the commands that the shortcuts use with gksudo, ie. "Exec=gksudo boot-admin".
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 01:24:12 UTC
(In reply to comment #0)
> What if I wanted to disable my root account with passwd -l, and use sudo to
> perform admin tasks.  In this situation, trying to use any of the shortcuts in
> the administration menu in gnome would be impossible, because the programs will
> prompt for a non-existent root password.

Same for KDE, etc. etc. Gentoo prefers normal root account usage, so either attach some patches for consideration, or you'll need to maintain such setup in overlay. Thanks.
Comment 2 Radek Podgorny 2006-03-02 02:43:02 UTC
Just out of curiosity, what should I do to make this policy (using root accound instead of sudo) change? Should I file a bug? Thanks...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 02:45:56 UTC
(In reply to comment #2)
> Just out of curiosity, what should I do to make this policy (using root accound
> instead of sudo) change? Should I file a bug? Thanks...

Start a thread about this on gentoo-dev mailing list, please. Bugzilla is not a proper place for discussing such wide-ranging changes. 
Comment 4 Simon Ruggier 2006-03-02 19:05:35 UTC
isn't root acc(In reply to comment #2)
> Just out of curiosity, what should I do to make this policy (using root accound
> instead of sudo) change? Should I file a bug? Thanks...
> 

isn't root account already used instead of sudo?  Anyway, I'd have to learn how the gnome2 ebuilds work to actually generate an updated ebuild.  I filed the bug because it seems like it would be trivially possible to offer users a choice, at install-time,  whether to use gksudo rather than a root password when running apps like boot-admin from the gnome menu.  I would attach an ebuild for you, but I haven't figured out how to write it.
Comment 5 Radek Podgorny 2006-03-11 04:38:12 UTC
Yeah, it is. But I think the Ubuntu way of not using root account is much nicer and safer. Let's learn this one from them...

Comment 6 Simon Ruggier 2006-03-23 04:19:40 UTC
I would just like to clarify the bug decription.  I'm proposing an enhancement whereby a USE flag named something like sudo is added to gnome-system-tools, and any other relevant packages.  If the flag is disabled, then things work as they do now.  If the flag is enabled, however, then the package is installed with the assumption that the user would rather enter their own password than the root password if root priveleges are needed.

In the particular case of gnome-system-tools, the flag would cause the shortcuts that get installed to the administration menu to exec gksudo <command> instead of just <command>.  For example, the users and groups shortcut would execute gksudo users-admin instead of just users-admin.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-03-23 04:49:49 UTC
(In reply to comment #6)

Please, see Comment #3.
Comment 8 Simon Ruggier 2006-03-23 06:07:11 UTC
I don't think this is a wide ranging change, it's just an enhancement, and bugzilla would seem to be the place for discussing enhancements.