Every time while doing the administrative task in Fedora, we need to login as root which can be kind of tedious and time consuming. ‘Sudo’ is something that provides administrative right to the normal user and allow to perform the root tasks. In this tutorial, I am going to show you how to enable ‘sudo’ in Fedora so that there is no need to login as root everytime while performing adminstrative tasks.s We need to edit the file sudoers which is under /etc/sudoers. We are going to perform this task by using the simple text editor called ‘nano’. First, let us install the text editor nano.
To install nano:
To install nano go to the terminal, login as a root user by typing ‘su’ and as a root user type:
|
1 |
yum install nano |
Check out installing and uninstalling applications in Fedora for more info.
Enabling sudo:
After installing nano, we will use nano to open that file. Now, type:
|
1 |
nano /etc/sudoers |
Now, scroll to the line which contains:
|
1 |
root ALL=(ALL) ALL |
Below that line add this line of code:
your_username ALL=(ALL) ALL
To find your use name type:
|
1 |
whoami |
My username is sachitad. So I would add:
|
1 |
sachitad ALL=(ALL) ALL |

Now save the nano and exit.
To save: Crtrl+O and hit Enter.
To exit: Ctrl+X
Now, to find out whether it is successfull or not, try installing program without login as a root user using sudo.






Recent Comment