SSHD Permission denied: PAM Module system-auth

Sometimes SSH won’t allow you to login though correct login credentials has been submitted and the SSH access logs says the following:

======
Nov 14 09:10:01 server crond[29804]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Nov 14 09:10:01 server crond[29803]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
Nov 14 09:10:01 server crond[29805]: PAM _pam_load_conf_file: unable to open /etc/pam.d/system-auth
======

The SSH access logs are saved in the /var/log/secure file. The logs clearly indicates that the file “system-auth” is missing from the “/etc/pam.d/” directory. This file is responsible for calling the PAM modules and is very much needed for authentication.

# ls /etc/pam.d/system-auth
ls: /etc/pam.d/system-auth: No such file or directory

Check /etc/pam.d/system-auth file may be it has been broken.

Solution : Copy it from another server.
=============================>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s