Linuxexit code > 0
User is not in the sudoers file
$user is not in the sudoers file. This incident will be reported.
Analysis
Your user account does not have administrative privileges granted via the
/etc/sudoers file.Common Triggers
- ●New user account created without adding to
wheelorsudogroup. - ●Logged in as a standard user on a restricted system.
Debug Checks
- $Check groups:
groups.
Resolution
1
Log in as root:
su -.2
Add user to sudo group:
usermod -aG sudo <user> (Debian/Ubuntu) or usermod -aG wheel <user> (RHEL/CentOS).Metadata
- Tool
- Linux
- Severity
- High
- Tags
- #linux#sudo#auth