chmod wrapper
bmonroe
bmonroe at zipcon.net
Mon Mar 29 13:24:03 EST 2004
Hey sudoers,
This question might have already been answered already, so I apologize in
advance.
Is there a prescribed method for wrapping chmod to disabling the setuid
and setgid bit?
So far I have:
Cmnd_Alias FILE_MOD = /usr/bin/chgrp
and
DEVELOP ALL=(ALL) NOPASSWD:FILE_MOD, \
!/usr/bin/chmod [1-4]??? *, \
!/usr/bin/chmod * [1-4]??? *, \
!/usr/bin/chmod *[s]* *, \
!/usr/bin/chmod * *[s]* *
This seems to work okay but it seems awfully cumbersome. Is there a
better way, or more importantly, are there any holes in the above?
Thanks
--Brett
More information about the sudo-workers
mailing list