Enable root in ubuntu server 14.04, 14.10

First login to the ubuntu server via terminal or console

To gain super user access, enter the following command and re-type the user password.

sudo su –

rootlogin

Type the following command to set the password for the Root user

passwd root

set password for root

This will prompt user to enter the new password.
and confirm password

The terminal will return with Password updated successfully!

Simply adding a password for root is not enough for Ubuntu 14.04+ Server.

You need to edit /etc/ssh/sshd_config, and commend out the below line:

PermitRootLogin without-password

Add the following line:

PermitRootLogin yes

permit root login

Then restart SSH:

service ssh restart

restart ssh

Yes you are done…

login using root account

Default image
Vignesh A Sathiyanantham
AWS Certified developer with 8 years of extensive experience working for Cloud and Datacenter solutions and leading a small team in a lean startup based on Bangalore, India

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.