login: PAM Failure, aborting: Critical error - immediate abort

mhakman's picture

Forums: 

Hello,

I modified file /etc/pam.d/login. Now I get following when I try to login:

Debian GNU/Linux 5.0
login: PAM Failure, aborting: Critical error - immediate abort

Subsequently I removed my changes to /etc/pam.d/login but I still get this error. Is there any way to fetch original /etc/pam.d/login from distribution? Thanks.

Re: login: PAM Failure, aborting: Critical error - immediate ...

mhakman's picture

Problem solved. I edited the file on Windows. The Windows editor puts CR (^M) characters at the end of each line. These characters give above critical error in PAM. I read the file into vi editor where these characters are seen as ^M and removed them through the file. Now login works as expected. Thanks.