Saturday, November 10, 2018

linux - How to add yourself to sudoers list?

I was trying to install a package using the command:


sudo apt-get install ruby-rvm

But I'm prompted with


nish is not in the sudoers file.  This incident will be reported.

I tried to add myself to sudoers list in /etc/sudoers. But to do that I need to be logged in as root user.


using the command "sudo su" again prompts "nish is not in the sudoers file. This incident will be reported."
Please cold someone help me out here.
Thanks

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...