Use root PATH for sudo on FreeBSD Sudo on FreeBSD uses the users PATH to find the command it is asked to run. Here's how to change that to use root's PATH instead. sudo vi /usr/local/etc/sudoers.d/secure_pathEnter this text on one line (changing the value as desired):Defaults secure_path = "/usr/local/share/pcbsd/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin" Save the fileFor more information see the sudoers man page. Note, however, that there are good reasons to keep the invoking user’s PATH. 2013-11-03 SYSTEM ADMINISTRATION security freebsd « Keyboard shortcut to delete files in Nautilus"Try this search on Google" for startpage.com »Comments Please enable JavaScript to view the comments powered by Disqus.