user not allowed

john ctr kelly john.ctr.kelly at
Tue Apr 24 13:20:23 EDT 2001

Can anyone tell me why I can not do a chmod on the following file when I have the following defiend in the sudoer file 


bash-2.04$ ls -l /var/www/cgi-bin/*
-rw-r--r--    1 nes      servers       268 Aug 23  2000 /var/www/cgi-bin/printen
-rw-r--r--    1 nes      servers       757 Aug 23  2000 /var/www/cgi-bin/test-cg
bash-2.04$ sudo chmod o+w /var/www/cgi-bin/printenv
Sorry, user jkelly is not allowed to execute '/bin/chmod o+w /var/www/cgi-bin/pr
intenv' as root on wkstnl05. 

sudoers file 
# Cmnd alias specification
Cmnd_Alias      APACHE = /etc/init.d/httpd , /usr/sbin/httpd , /bin/kill  , /bin/chmod /var/www/cgi-bin/*
Cmnd_Alias      REBOOT    = /usr/bin/reboot
Cmnd_Alias      SHUTDOWN  = /usr/bin/shutdown
# User privilege specification
WEB     ALL= APACHE               
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/sudo-users/attachments/20010424/d4f2fe9f/attachment.html>

More information about the sudo-users mailing list