You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI - Failed to Enter Maintenance with "Cannot open access to console, the root account is locked."

edited May 26, 2023 4:21PM in Linux

Applies to:

Oracle Cloud Infrastructure


Symptoms:

The system is trying to enter maintenance mode (in this case due to a filesystem corruption issue) for manual intervention but is failing due to the fact that the "root" account's password is locked:

Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.Cannot open access to console, the root account is locked.
ee sulogin(8) man page for more details.Press Enter to continue.

Cause:

The "root" account's password is locked:

bash-4.2# passwd --status root
root LK 2021-07-22 0 99999 7 -1 (Password locked.)
bash-4.2# 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!