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:
yum install nano
Check out installing and uninstalling applications in Fedora for more info.
After installing nano, we will use nano to open that file. Now, type:
Now, scroll to the line which contains:
root ALL=(ALL) ALL
Below that line add this line of code:
your_username ALL=(ALL) ALL
To find your use name type:
My username is sachitad. So I would add:
sachitad ALL=(ALL) ALL