Overview
In Ubuntu 24.x (24.04 LTS), the root account is disabled by default for security reasons. Ubuntu enforces administrative access through the sudo mechanism, which provides better auditing and reduces the risk of accidental or malicious system changes.
This article explains how to enable and disable root access, and outlines security best practices.
Default Root Account Behavior
-
The
rootuser exists but is locked -
Direct login as
rootis not permitted -
Administrative privileges are granted via
sudo
To check the current status: