GNOME panel and sudo

Manu Cornet Manu.Cornet at GMail.com
Sun Jul 17 16:57:48 CDT 2005



Hello !

> gdm runs as root, it could do sudo -l -u $USER and pass that information
> to the session somehow.

Hmm, it seems that sudo doesn't like -l and -u options together :


root at tiramisu:/home/manu # sudo -l -u manu
sudo: the `-u' and '-l' options may not be used together
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
             { -e file [...] | -i | -s | <command> }

That's why I'm not sure about how to get this info directly (without 
typing a pasword), even if the process is root... I'm not even sure it 
is possible.


And, do we really want gdm to tell us this information ? Problems I see 
are :

* How are we gonna do that (pass it from gdm to gnome-menus) ? :)

* These changes will probably go upstream for gnome-menus ; so, what if 
the login manager is not gdm ? I'm not sure I can ask kdm, xdm, etc. 
(these programs still exist, right ?), maintainers to change their code 
for this :)

What do you think ?
Manu



More information about the ubuntu-devel mailing list