GNOME panel and sudo
Dennis Kaarsemaker
dennis at kaarsemaker.net
Sun Jul 17 16:13:11 CDT 2005
On zo, 2005-07-17 at 22:58 +0200, Manu Cornet wrote:
> Among a few enhancements projects for the GNOME panel, I would like to
> hide entries that require a sudo password (eg Synaptic) from non-sudoers
> users (they can't use these programs anyway, and it would free up some
> space and make the menus simpler to understand).
I like this idea a lot.
> * Directly use the "sudo" command. If I type "sudo -l", then I can see
> what types of commands I am allowed to run (and that's all I need). The
> problem is that it needs my user password ; and asking the user to type
> his password a second time when his session is opening is of course out
> of the question. But, since we need a setuid root anyway, maybe there is
> a way to run a "sudo -l", as root, to get info about a particular user
> (but I don't know how to do that).
>
> Does anybody have an idea on what would be the best way to achieve this?
gdm runs as root, it could do sudo -l -u $USER and pass that information
to the session somehow.
--
Dennis K.
- Linux for human beings: http://www.ubuntulinux.org
- Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20050717/152debf3/attachment.pgp
More information about the ubuntu-devel
mailing list