Testing Sudo Configuration
This is an example series of commands for testing the sudo configuration. It assumes that the user account used for collection is named 'risc'.
-
Log in to the account
su - risc -
Run the built-in sudo configuration test to confirm that the sudoers syntax is valid and the user account has basic access to run sudo.
sudo -v -
Run the true command under sudo to confirm that the account is permitted to execute a command. The true command is used by the SSH Collection Module to test access to sudo.
sudo true