Question #174   Submitted by Answiki on 10/12/2020 at 03:17:04 PM UTC

How to enable root login under ubuntu?

Answer   Submitted by Answiki on 10/12/2020 at 03:23:11 PM UTC

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



2 events in history
Answer by Answiki on 10/12/2020 at 03:23:11 PM

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



Question by Answiki 10/12/2020 at 03:17:04 PM
How to enable root login under ubuntu?
# ID Query URL Count

Icons proudly provided by Friconix.