Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 9 down vote accepted

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

sudo passwd ec2-user
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.