Either this is a sudo bug, or I'm not understanding sudo properly. Here's
what happens if I've got a secure_path defined in my /etc/sudoers file:
[ewilts@linux1 ewilts]$ sudo which adduser
/usr/sbin/adduser
[ewilts@linux1 ewilts]$ sudo adduser foo
sudo: adduser: command not found
[ewilts@linux1 ewilts]$ sudo echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/ewilts/bin:/usr/X11R6/bin:/usr/games:/usr/X11R6/bin:/usr/games:/usr/X11R6/bin:/usr/games
Obviously what I'd like to do is to allow users to execute a privileged
command on the command line. It seems like the secure_path is being ignored.
Here's the entry in my /etc/sudoers file:
Defaults
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
It's on one line in the file but is wrapping in e-mail.
Any suggestions or thoughts?
Thanks,
.../Ed
--
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]