How to Enable Root User in Ubuntu Server?

Please refer to the below steps to enable root user in ubuntu.

  1. Login to your ubuntu server using the default user from the console.

  2. Go to the sshd_config file at the path /etc/ssh/

  3. Comment out #PermitRootLogin without password, add PermitRootLogin yes into the line.



  4. Restart the SSH service to make the changes effect by using the below command.

    service sshd restart

That's it, you have enabled Root user in Ubuntu.

Related Articles

How to install ISPConfig on Debian 10?

ISPConfig is an Open-source Hosting Control Panel for Linux. It is used widely as it is free of...

What if I exceed the bandwidth limit I am assigned with VPS?

Our system continually monitors the bandwidth usage of all our VPS. In case if your total monthly...

On which platform Linux VPS are configured?

We configure Linux VPS on XEN virtualization technique. However, Linux Cloud VPS are configured...

How to change SSH port on Centos 7.x?

SSH or secure shell is a network protocol. We use it to connect and access remote servers. We can...

How to Install MySQL on CentOS 7.x?

MySQL is one of the popular database management systems. For now, MySQL is no longer within...

  • 0 Users Found This Useful

Was this answer helpful?