To ensure the proper PATH environment variable is setup, I am using the
sudo -i options, but am finding that the
sudoers file isn't being respected.
Here is my setup:
Defaults env_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL user ALL=(ALL) ALL user ALL=NOPASSWD: /usr/local/bin/chef-solo
sudo chef-solo -v doesn't prompt for a password. Running
sudo -i chef-solo -v will prompt for a password.