GovReady / govready

Toolkit for getting open source apps ready for secure, approved government use
GNU General Public License v3.0
99 stars 31 forks source link

Alter sudo path for vagrant sudo to include /usr/local/bin #9

Open gregelin opened 10 years ago

gregelin commented 10 years ago

Either check in GovReady, and/or adjust in my vbkick files.

gregelin commented 9 years ago

http://unix.stackexchange.com/questions/8646/why-are-path-variables-different-when-running-via-sudo-and-su

Take a look at /etc/sudoers. The default file in Fedora includes this line:

Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin
gregelin commented 9 years ago

Maybe govready should be installed elsewhere?

gregelin commented 9 years ago

Best way to fix is probably to put symbolic link in /usr/bin

sudo ln -s /usr/local/bin/govready /usr/bin/govready