Enable ‘sudo’ in Fedora 15
Posted 07-02-2011 at 04:53 AM by dEnDrOn
Here is how you can enable ‘sudo’ in Fedora so that you don’t have to login as root everytime you need to run a command as root. Open up terminal and type in the following:
Now, scroll down and you should see something like:
Just below that line, add this:
For eg, my username is “dendron”, so I added the line:
If you are not sure what your username is, open up a new terminal window and type in ‘whoami’.
Save by pressing Ctrl+O followed by Enter. Exit nano by pressing Ctrl+X. Exit from root by typing in “exit”.
Now, you will be able to use sudo.
Code:
su #enter root password followed by this one yum install nano nano /etc/sudoers
Code:
root ALL=(ALL) ALL
Code:
YOUR_USER_NAME_HERE ALL=(ALL) ALL
Code:
dendron ALL=(ALL) ALL
Save by pressing Ctrl+O followed by Enter. Exit nano by pressing Ctrl+X. Exit from root by typing in “exit”.
Now, you will be able to use sudo.
Total Comments 0