Command Execution Error

Todd C. Miller Todd.Miller at courtesan.com
Tue Mar 18 16:03:16 EST 2003


The problem is that your sudoers entry only allows htpasswd to be
run with /opt/www/retirees/htdocs/.htpasswd as an argument.

If you want to be able to give a username you could do:

Cmnd_Alias ADDACCT = /usr/apache/bin/htpasswd \
	/opt/www/retirees/htdocs/.htpasswd *

Unfortunately, GNU getopt will permute arguments which allows the
user to pass command line switches to htpasswd after the path arg.
This may or may not be a concern.

 - todd


More information about the sudo-users mailing list