The typical tasks in the Linux can be accomplished easily, only if you are a Root user or you may say a SuperUser. For that, you need to enable the root user in Ubuntu. In Ubuntu, the Root account is not enabled at its own, it is locked. As a result, it causes hindrance to perform the activities such as installing a software, editing the network configuration applet, etc.
You people may be thinking why is that so? Ubuntu has applied this restriction, so that a novice may not indulge into an unresolved activity through which a system could damage.
For instance, you want to login as a Root user in Ubuntu due to any circumstance, then you may find this article useful. However, you can perform some of the tasks using “sudo”, a program that especially, allows the user to use the security privilege of a root user, but it is up to some extent. Therefore, you must find out how to easily enable root user in Ubuntu by following the steps as explained below.
Steps to Enable Root User in Ubuntu
Step 1: Search for the “Terminal” applications in the search bar, click on “Terminal” or directly hit “Ctrl +Alt + T” to open it.
Step 2: Then by default, you”ll not be able to enter as a root user in the terminal due to the security reasons. To enable the root user for performing the special tasks you have to write “sudo passwd root” and press enter.
Step 3: After that, you are required to enter your “user password” and press enter.
Be careful, this should not be confused with a root password.
Step 4: Now you will be asked to enter a new Unix password which will be your root password and press enter, confirm it by entering again.
You must write it somewhere so that if you forget it, you can refer to that guide. It is beneficial and recommended not to forget the root password, if you do, then you have to recover it through the recovery mode only, which is quite onerous.
Step 5: Once you have entered the root password, message will be shown as “password updated successfully”.
Step 6: Next step is to initiate the shell as root login, for this you have to type “sudo -i” command and press enter.
Step 7: As you can see in the figure below, the prompt has changed to “#” from “$”.
Looking at sign “#”, ensures to be logged on as a root. Now you may perform all the crucial operations for which you have entered to the shell as a root user.
Leave a Reply