You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The InSpec executable expects that sudo will be found in /usr/bin/sudo, however, some older Solaris installs install it after the fact in /usr/local/bin/sudo.
InSpec and Platform Version
Inspec Version:
Solaris Version: Any modern supportable Solaris with a non-bundled install of sudo
Replication Case
Run InSpec against Solaris system with --sudo option
If the sudo executable is not found in /usr/bin/sudo or elsewhere in the PATH available when the Inspec command connects, the run will fail.
Possible Solutions
You can use the sudo_command option like this to workaround --sudo_command PATH=$PATH:/usr/local/bin sudo
Stacktrace
/opt/chef-compliance/embedded/bin/inspec exec test.rb --key-files /root/dev/dev-lxc.pem -t ssh://[email protected] --sudo
Sudo failed: Can't find sudo command. Please either install and configure it on the target or deactivate sudo.
The text was updated successfully, but these errors were encountered:
Description
The InSpec executable expects that sudo will be found in /usr/bin/sudo, however, some older Solaris installs install it after the fact in /usr/local/bin/sudo.
InSpec and Platform Version
Replication Case
--sudo
optionPossible Solutions
You can use the sudo_command option like this to workaround
--sudo_command PATH=$PATH:/usr/local/bin sudo
Stacktrace
The text was updated successfully, but these errors were encountered: