Bugzilla – Bug 18
Defaults secure_path in /etc/sudoers read too late
Last modified: 2004-11-12 13:56:34 MST
If you set "Defaults secure_path=blah" in /etc/sudoers, it isn't used by find_path() when looking for the command to run, because find_path is called before the sudoers file has been read.
This is a tough one to fix since the path to the program to be looked up has to be set before parsing sudoers. A two-pass reading of sudoers may be required, one for the defaults and another for permissions check.
*** Bug 26 has been marked as a duplicate of this bug. ***
The next major release of sudo (1.6.9 or 1.7.0) will have a new parser and the secure_defaults runtime option will be restored.