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

Fix :: Linux SSH error "connection refused"

Problem Statement Can't connect to a Linux server(Debian Flavour) via SSH. Error Message...

How to add my SSH key to Github/Bitbucket?

Are you looking to deploy your websites using GitHub or Bitbucket to Accuwebhosting? It is very...

How to Enable Plaintext Authentication in Dovecot?

Dovecot is an Open source IMAP or POP3 server used to create light-weight and high-performance...

How to flush DNS cache on linux?

DNS is responsible for resolving website names into their respective IPs. Whenever you visit a...

How to sync time using NTP in Ubuntu server?

Linux server users might have noticed that after adjusting the system clock to the correct time,...

  • 0 Users Found This Useful

Was this answer helpful?