restricted chmod - follow up

Roger McCalman r.mccalman at elsevier.co.uk
Tue Mar 21 04:29:35 EST 2000


What happens with things like u+s,g+s ?

Cheers, Roger

On Tue, Mar 21, 2000 at 09:32:11AM +0100, Smith, Kevin (CAP, GCF) wrote:
> All,
> 
> Many thanks to those who responded to my enquiry regarding running a
> restricted chmod. {Emil & Matt}
> 
> I have found that
> 
> !/bin/chmod [1-4]??? * in /etc/sudoers
> 
> Appears to work. Basically I wanted to stop users from setting the
> sticky/setuid bit on a file.
> Upon testing, normal chmod using any octal works and any 'other' bit setting
> [between 1 and 4] fails
> 
> Regards
> 
> Kev Smith 
> GCF Unix technical support
> Kingswood, Bristol, UK
> [44] (0)117 991 2645



More information about the sudo-users mailing list