After creating an additional user with root priveledges, I get errors that I do not have permissions.

December 14, 2013 1.5k views
I guess I should first say I'm not a programmer, but I can "hack" my way through this stuff. So... I followed the Initial Server Setup Tutorial: . After creating the user and adding: "newuser ALL=(ALL:ALL) ALL" below the: "root ALL=(ALL:ALL) ALL" line and I ssh in using the newuser, I am unable to pull up visudo and receive the following error: "visudo: /etc/sudoers: Permission denied" Any help is appreciated. Thanks
1 Answer
Guess if I had read the comments ahead of time, I would have found my answer...

Etel says:
"This is because you are trying to run visudo as your regular user instead of as root.

To access visudo without getting the "Permission denied" result, be sure to switch to the root user:

"sudo bash"

and then you can run visudo without issue."

So with the new user logged in i did "sudo bash" then "visudo" and it worked just fine :)
Have another answer? Share your knowledge.