Username is not in the sudoers file this incident will be reported, it is a common error message when a non sudo user tried to make some sudo command.
To fix this you need to grant the user sudo privilage.
Follow the below steps to add user to sudoers file easily.
First switch to root user.
su -
Add user to sudoers file.
usermod -a -G sudo username
Now try to execute sudo commands from your username.
Leave a Reply