To be able to use sudo for running queries in the context of a super user, you can add the following in the
sudoers file to disable password prompt for every command:
<name> ALL=NOPASSWD: ALL
where, <name> is the native user, whose credentials are specified in the credential database.
You may encounter the following issues if the password prompt is not disabled, and certain commands get blocked by not specifying a password:
Special values for certain commands such as hostname, may return different values.
If the uname command is blocked, validation of agent-less targets may fails and the data sources will not return data.
Data sources may return incomplete data.
Imported Document Id