After logging into ssh, I got this message:
\'Username\' is not in the sudoers file. This incident will be reported.
How can I r
This is a very common error for the beginners. The error occurs because we are trying to access/update something with super privileges from the user instead of root -user.
Hence, to solve this,we need to make changes in the sudoers file where the root user has been given the privileges. So, switch to root user,run the following command
# vi /etc/sudoers
The editor would open the file, now scroll down to the bottom where you will see a line
#User privilege specification
root ALL=(ALL:ALL) ALL
username ALL=(ALL:ALL) ALL
As you can see, I have just added my username with all permissions.
Save the file, and exit. Switch back to the user and start using sudo commands with ease.