Disable the root account in Linux (passwd)
passwd -dl root
The passwd -dl root command disables the root account by deleting its password (-d) and locking the account (-l). This prevents direct login as root via password-based authentication, protecting the system from unauthorized access. While the root account is locked for login, it remains active for system processes and can still be used for administrative tasks through sudo or other secure access methods like SSH with public key authentication.