LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How do i add myself to "the sudoers file" (https://www.linuxquestions.org/questions/debian-26/how-do-i-add-myself-to-the-sudoers-file-807995/)

Lyle 05-15-2010 06:20 AM

How do i add myself to "the sudoers file"
 
everytime i try to do anything with sudo i cant and this time it was extremelly costly. From now on i don't want to risk anything like this again and i need to be able to sudo.

EricTRA 05-15-2010 06:24 AM

Hello,

If you have sudo installed, type as root (or sudo command):
Code:

visudo
That will open the sudoers file in vi. Add your name to the list (below root) indicating the rights you need. From that moment on you can sudo as your user.

Kind regards,

Eric

Lyle 05-15-2010 06:27 AM

Quote:

Originally Posted by EricTRA (Post 3969407)
Hello,

If you have sudo installed, type as root (or sudo command):
Code:

visudo
That will open the sudoers file in vi. Add your name to the list (below root) indicating the rights you need. From that moment on you can sudo as your user.

Kind regards,

Eric

thanks


All times are GMT -5. The time now is 12:56 AM.