3

I have a server where I wish to run a process using screen. I start a screen using:

screen -S <screen_name>

Detach using ctrl+a+d. But when try to reattach the screen using,

screen -r <screen_name>

It asks for screen password. Now I did not remember setting any password and the root user password do not work. How to reset this?

  • would apt purge screen; apt install screen be harmful (do you have data you would lose?) it's probably in a configuration file somewhere... – cat Jan 21 '16 at 16:48
  • i have seen that. – salman wahed Jan 21 '16 at 16:49
  • it seems like there may be configuration settings in ~/.screenrc; purge will not purge user-specific configurations. did you try deleting this file? – cat Jan 21 '16 at 16:51
  • 1
    (it would be helpful for you to edit your question to include what you have and haven't tried.) – cat Jan 21 '16 at 16:51
  • 1
    @cat Deleting the .screenrc then purging make it work. thank you. If you would like to write an answer, I shall accept that. – salman wahed Jan 21 '16 at 16:57
2

GNU Screen stores user's passwords in ~/.screenrc and authenticates using PAM in /etc/pam.d/screen.

Deleting ~/.screenrc should solve the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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