Enter the correct account appears on the linux host and password and can not log in, how to operate

Background what happened: linux virtual machine in vmware that opens, enter the account number and password can not log in, but with other devices connected to the terminal and can smoothly open.

1, for investigation of the matter, use the command on the terminal, then vmware that landing, view the log
tail -f / var / log / secure

Mar 14 11:05:06 testOpenfire login: PAM unable to dlopen(/lib/security/pam_limits.so): /lib/security/pam_limits.so: cannot open shared object file: No such file or directory
Mar 14 11:05:06 testOpenfire login: PAM adding faulty module: /lib/security/pam_limits.so
Mar 14 11:05:10 testOpenfire login: pam_limits(login:session): unknown limit type 'herd'
Mar 14 11:05:10 testOpenfire login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Mar 14 11:05:10 testOpenfire login: Module is unknown
Mar 14 11:05:21 testOpenfire login: PAM unable to dlopen(/lib/security/pam_limits.so): /lib/security/pam_limits.so: cannot open shared object file: No such file or directory

Meaning that PAM unable to dlopen /lib/security/pam_limits.so this document, there is no reason that pam_limits.so view this file to / lib / security / lower case

2, in /etc/pam.d/login, the configuration information which follows
Enter the correct account appears on the linux host and password and can not log in, how to operate
next is marked on this line to annotate, then reboot the device can be a normal landing

Guess you like

Origin blog.51cto.com/12092988/2423773