10.4.13

sudo PATH on Ubuntu

Ubuntu changes the sudo path to secure. Set it to what you want.

sudo visudo
and add your sudo path to the secure_path= line

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/samba/bin:/usr/local/samba/sbin:/usr/lo. . .

. . .