Just installed Debain Wheezy on another machine.
I'm trying to figure out how to add myself to the sudoer list but when I try using visudo I get some error saying I'm not in the sudoers list.
I've been searching around and everything says that I need to edit that file using visudo, which when I look for it in synaptic, nothing shows up, as in it's not installed or even available!
So, how do I add myself to the sudoer list?
Best Answer cork1958 , 26 July 2013 - 13:01
No, I wasn't trying to add myself using sudo!!
I found the answer though:
How to enable sudo for my user account on Debian 6? (still works on 7)
You will need the root password for this set of commands.
Login to a user account.
Open a terminal window and type this into your window:1
2 su root
adduser YOURUSERNAME sudo
Now reboot, and on your next session you will be allowed to run every program or command, which doesnt belong to you, or you don’t have the rights for with
This is the simple way instead of going through that goofy visudo junk!!Go to the full post