Unlock screen for ec2-user

rmflow asked:

I accidently locked screen under ec2-user (pressed C-a C-x). As far as I know ec2-user has no password.

Now I’m prompted for password to unlock.

I do not want to terminate the process running under that screen. Is there any way to unlock the screen?

My answer:

In a different session, login as root and reset your user password.

sudo passwd ec2-user

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.