SSH sudo command error "User has no right to run command under sudo"


Sudo commands will fail with Permission denied or No credential found for types [SSH Password,SSH Private Key]. Discovery logs will contain warnings like:

User has no right to run command under sudo

Release or Environment

All releases.


Some commands require sudo privileges to run. Some systems are configured to notify the admin team when a user attempts to use sudo but is not allowed to. The MID server checks if such user is allowed to use sudo with a command before the ssh commands is executed. A couple of reasons this error could be seen are:

Note: Some probes include script files. Check that such files are OOB. 


Possible solutions:

Additional Information