GNOME panel and sudo

Dennis Kaarsemaker dennis at kaarsemaker.net
Mon Jul 18 04:09:37 CDT 2005


On ma, 2005-07-18 at 10:49 +0200, Julien Olivier wrote:
> Le lundi 18 juillet 2005 à 10:05 +0200, Dennis Kaarsemaker a écrit :
> > On ma, 2005-07-18 at 09:13 +0200, Julien Olivier wrote:
> > > > What do you think ?
> > > 
> > > If you're running as root (which you aren't in gdm), this should work:
> > > su USER -c "sudo -l"
> > 
> > That still needs the users password...
> 
> No, it doesn't. "su USER" won't ask the user's password if you are root,
> and neither will "sudo -l". At least, it works for me.

Running sudo -l as root will indeed not require a password, but running
sudo -l as someone else (which su does for you) does require a password.
That it works for you may be because your sudo password was still
cached.

ps: no need to CC me, I'm subscribed to the list.
-- 
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/20050718/3c3032e1/attachment.pgp


More information about the ubuntu-devel mailing list