👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

How to enable root login under ubuntu?

In Ubuntu, the root account is disabled by default for security reasons. Ubuntu users are encouraged to perform system administrative tasks with sudo.


Therefore, sometimes it is necessary to unlock the root user. The first thing to do is to assign a password to the root user:

sudo passwd root

Once the password is set, unlock the root user:

sudo passwd -u root

The root user can now be used:

su - root



More