martin.pitt at ubuntu.com
Fri Nov 25 04:59:08 CST 2005
Carlos Ribeiro [2005-11-25 8:22 -0200]:
> My first guess was 'why not patch sudo for some extra option', but you're
> right, it would mess with someone's else code.
I already did - I added the -t option to test whether a command can be
executed without actually doing it.
> But - is there any reason why a simple tool to parse /etc/sudoers
> would not work? It would replicate some of the work that sudo
> already does, but I assume that the format of the file is pretty
Yes, /etc/sudoers can only be read as root. So you need a suid root
program anyway, and sudo already has all the necessary parsing stuff
and is proven code. The -t patch is trivial and safe.
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org
In a world without walls and fences, who needs Windows and Gates?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20051125/dc876104/attachment.pgp
More information about the ubuntu-devel