I tried to harden my Ubuntu 20.04 installation as per instructions in https://ubuntu.com/security/certifications/docs/cis. After running the hardening script as specified, I could not run the CIS audit command (sudo cis-audit level1_workstation). My password was not accepted (system came back asking Is your account locked). After restarting, I could neither log on as root nor as a regular user. Logging in from another computer via ssh -v login was denied with message that account has expired. I did notice that PAM was downloaded as part of the hardening process and session level configurations were created inside the config file. Now I have no access to the computer. Can someone help?
Asked
Active
Viewed 1,947 times
1 Answers
0
Same happened for me. Boot into single user mode to access root console, as explained in this answer, then try to reset password using passwd
Lorenz Keel
- 9,511