All linux user got this error while run command with restricted user.
"User not in the sudoers file. This incident will be reported"
To provide permission to user to run command with SUDO, Do as followed
#sudo /usr/sbin/visudo or visudo
Find below line,
"# Allow members of group sudo to execute any command"
Then add below line without quote.
"username ALL=(ALL) ALL"
"User not in the sudoers file. This incident will be reported"
To provide permission to user to run command with SUDO, Do as followed
#sudo /usr/sbin/visudo or visudo
Find below line,
"# Allow members of group sudo to execute any command"
Then add below line without quote.
"username ALL=(ALL) ALL"