
/etc/pam.d/system-auth configuration in /etc/pam.d/login file.

pam_limits.so module is not configured correctly in the system-auth configuration file, the login fails.

pam_limits.so module limits the system resource usage of a user during the session. If the module path is not configured correctly according to the actual operating system, the login authentication fails.pam_limits.so path configuration in the system-auth file.pam_limits.so module path.vim /var/log/secure
/lib/security/pam_limits.so as shown below.

/etc/pam.d directory and search for /lib/security/pam_limits.so.cd /etc/pam.d
find . | xargs grep -ri "/lib/security/pam_limits.so" -l
system-auth file.

system-auth file to correct the pam_limits.so module path.
For example, you can use the absolute path /lib64/security/pam_limits.so or a relative path pam_limits.so in a 64-bit operating system.Feedback