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'.

To test Sudo configuration:

1. Log in to the account

su - risc

2. 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

3. 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