How to Enable and Disable Root Login in Ubuntu

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. arun says:

    Hi Ravi,

    The above tip worked, but i want to activate root account in Ubuntu to login through login window. I am using Ubuntu 14.04.

    Please guide me on this..

    • Ravi Saive says:


      To login Ubuntu directly as root user, follow below instructions.

      Go to System -> Administration -> Login window -> Security tab, click on the check box “Allow local system administrator” and reboot the system and login directly using root user.

  2. Johannes Doet says:

    `sudo passwd -d root` only removes the password, `sudo passwd -dl root` also locks the account. Key-based SSH access might however still be possible. To completely disable the account use `sudo usermod –expire-date 1 root`

  3. karan says:

    Thanks a lot for the nice tip. I was searching for the same and finally found it here.

  4. libre-vinayak says:

    Straightforward crisp and simple! Exactly what I needed!

  5. rapido_liebre says:

    Great job! This exactly what I looked for. Thanks!

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?