LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudoer list: Fedora 13 (https://www.linuxquestions.org/questions/linux-newbie-8/sudoer-list-fedora-13-a-825217/)

ciao303 08-09-2010 11:53 PM

sudoer list: Fedora 13
 
ok how do I include my username in the sudoers list?

hilyard 08-10-2010 12:03 AM

Gotta use visudo as root.

http://www.linuxquestions.org/questi...visudo-597400/

bret381 08-10-2010 12:06 AM

su
root password

visudo

under #User Priveledge Specification
you should see:
root ALL=(ALL) ALL

add:

username ALL=(ALL) ALL

and save

ciao303 08-11-2010 03:56 AM

gives me this scenario:


carloslopez@CarlosLopez:~$ su
Password:
su: Authentication failure
carloslopez@CarlosLopez:~$ su
Password:
su: Authentication failure


I tried twice...how do I get past this authentication hurdle?

alli_yas 08-11-2010 04:06 AM

Hi

Code:

$ su
The above command is switch user which when entered with no username will default you to switching to root. Thus if you enter the above and enter the root password you will be switched to root.

This does not relate to sudoers. Adding your username to /etc/sudoers will allow you to run super user commands via the sudo command.

Thus for example when logged as an ordinary user; you can use sudo to edit the /etc/fstab file which belongs to root.

Say for example you're logged in as john you can thereafter do the following:

Code:

john@mycomputer$ sudo vi /etc/fstab
[sudo] password for john:

You enter your password for the john user, and you can now edit the file with super user priveleges; provided that john is in the sudoers file.


All times are GMT -5. The time now is 05:48 PM.