login as root

By default you can’t login as root in ubuntu 10.04 or other linux distribution due to the security policy of linux.Suppose you have logged in as root in ubuntu and by mistake you did something wrong then your system may be crash.But administrative power is required in some cases such as in installing some programs to solve file permission problem while working on file system.That’s why there is a simple solution and is sudo command.hence you can do administrative task or run administrative commands followed by sudo.Hence in this method you will have to work in command line interface.So in the case if you don’t know much more about ubuntu commands OR you feel irritating in doing some administrative task fr0m command line then you can enable the root login fr0m the login menu  and run as a root.

Hence It is very simple to enable root logging in graphical or GUI mode, just follow these simple steps –

step1. Open the bash terminal.

ubuntuuser@ubuntuuser-desktop:~$

step2. Type the command  sudo passwd root.First it will ask for the user password.Enter your current-user session password and and hit enter.

ubuntuuser@ubuntuuser-desktop:~$ sudo passwd root

[sudo] password for ubuntuuser:

step3. Then it will ask for new password.Enter a new password twice.This is the password you will use this in future for logging as root.

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

ubuntuuser@ubuntuuser-desktop:~$

step4. To check whether it is working or not just logout fr0m the current session.At login prompt,choose other as a user account.Next, in the place of username write root and the password you just defined in the above step.

step5. that’s all..I hope your work is done.

NOTE : If you logged in as root then you must be careful about the each activities.After finishing the administrative task you should return to the normal mode.

You may like this post : A simple tutorial to learn- how to secure from internet threats.

Join the Conversation

5 Comments

Leave a comment

Your email address will not be published. Required fields are marked *