How to enable root account for Ubuntu

July 6, 2021 . 1 MIN READ

To enable the root account and access directly via the console in root mode, you must type the command:

$ sudo passwd root

This command allows you to set up the password mode for the root user which will be activated for the console sessions only (no GUI). Once the password is initialized, it will be possible to open a console session with the user root.

Leave a Reply

Your email address will not be published. Required fields are marked *