{"id":1099,"date":"2010-10-10T08:22:39","date_gmt":"2010-10-10T12:22:39","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1099"},"modified":"2013-03-20T08:43:16","modified_gmt":"2013-03-20T12:43:16","slug":"sshd-pam-unable-to-open-etcpam-dsystem-auth","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/sshd-pam-unable-to-open-etcpam-dsystem-auth","title":{"rendered":"SSHD: PAM unable to open \/etc\/pam.d\/system-auth"},"content":{"rendered":"<p>Sometimes SSH won&#8217;t allow you to login though correct login credentials has been submitted and the SSH access logs says the following:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">sshd: PAM _pam_load_conf_file: unable to open \/etc\/pam.d\/system-auth <\/span>\r\n<span style=\"color: #0000ff;\">sshd: PAM unable to dlopen(&lt;*unknown module path*&gt;) \r\n<\/span><span style=\"color: #0000ff;\">sshd: PAM [error: &lt;*unknown module path*&gt;: cannot open shared object <\/span>\r\n<span style=\"color: #0000ff;\">file: No such file or directory] <\/span>\r\n<span style=\"color: #0000ff;\">sshd: PAM adding faulty module: &lt;*unknown module path*&gt;<\/span><\/pre>\n<\/blockquote>\n<p>The SSH access logs are saved in the \/var\/log\/secure file. The logs clearly indicates that the file &#8220;system-auth&#8221; is missing from the &#8220;\/etc\/pam.d\/&#8221; directory. This file is responsible for calling the PAM modules and is very much needed for authentication.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">root@server [~]# ls -la \/etc\/pam.d\/system-auth <\/span>\r\n <span style=\"color: #0000ff;\">\/bin\/ls: \/etc\/pam.d\/system-auth: No such file or directory<\/span><\/pre>\n<\/blockquote>\n<p>In order to fix the issue, copy over the &#8216;system-auth&#8217; file from another server and you should be able to SSH in immediately.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes SSH won&#8217;t allow you to login though correct login credentials has been submitted and the SSH access logs says the following:<\/p>\n<p>sshd: PAM _pam_load_conf_file: unable to open \/etc\/pam.d\/system-auth<br \/>\nsshd: PAM unable to dlopen(&lt;*unknown module path*&gt;)<br \/>\nsshd: PAM [error: &lt;*unknown module path*&gt;: cannot open shared object<br \/>\nfile: No such file or directory]<br \/>\nsshd: PAM adding faulty module: &lt;*unknown module path*&gt;<\/p>\n<p>The SSH access logs are saved in the \/var\/log\/secure file. The logs clearly indicates that the file &#8220;system-auth&#8221; is missing from the &#8220;\/etc\/pam.d\/&#8221; directory. This file is responsible for calling [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1093,1090,1092,1089,1091],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1099"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1099"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1099\/revisions"}],"predecessor-version":[{"id":1101,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1099\/revisions\/1101"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}