How to Enable Root Login on Ubuntu 14.04

By default, the Root account password is locked in Ubuntu and you will not able to login as Root directly or use the su command to become the Root user. The root user doesn’t have a password set. The steps to enable the root account is very simple. But it is not recommended because it may cause very serious trouble to your system because login as Root means you can do anything.

Issue this command to enable root login on Ubuntu 14.04. You will prompted for a new Unix password. Second password for confirmation :

sudo passwd root

Example :

login as: ehowstuff
ehowstuff@'s password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:

  System information as of Sun Apr 27 23:49:57 MYT 2014

  System load:  0.15              Processes:           68
  Usage of /:   3.8% of 31.37GB   Users logged in:     0
  Memory usage: 3%                IP address for eth0:
  Swap usage:   0%

  Graph this data and manage this system at:

4 packages can be updated.
1 update is a security update.

Last login: Sun Apr 27 23:49:57 2014
ehowstuff@ubuntu14:~$ sudo passwd root
[sudo] password for ehowstuff:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
  1. Gaurav
    May 27, 2014 at 1:18 pm

    I came here for GUI root login you moron

  2. mparkmed
    June 1, 2014 at 3:56 pm

    access denied wrote me after I did this.

Leave a Reply

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

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee