I
I copy from /lib/security to lib64/security pam_script.so file which was missing during ssh2 connection, then I faced the following message :
May 21 15:46:18 vlab_mgmt sshd[3712]: PAM unable to dlopen(/lib64/security/pam_script.so)
May 21 15:46:18 vlab_mgmt sshd[3712]: PAM [error: /lib64/security/pam_script.so: wrong ELF class: ELFCLASS32]
May 21 15:46:18 vlab_mgmt sshd[3712]: PAM adding faulty module: /lib64/security/pam_script.so
root@vlab_mgmt(~)$ more /var/log/messages
May 21 15:45:38 vlab_mgmt sshd[3642]: Received disconnect from 118.10.10.146: 3: com.jcraft.jsch.JSchException: Auth cancel
May 17 04:03:02 vlab_mgmt syslogd 1.4.1: restart.
May 18 15:36:33 vlab_mgmt sshd[10883]: Accepted keyboard-interactive/pam for tl13082 from 118.10.10.146 port 62593 ssh2
May 18 15:36:33 vlab_mgmt logger: /export/home/application/process/tools/tl1_login: called by user tl13082
May 18 15:36:33 vlab_mgmt logger: /export/home/application/process/tools/tl1_login: connecting to TL1 on port 3082
May 18 15:36:39 vlab_mgmt ntpdate: 18 May 15:36:39 ntpdate[10906]: adjust time server 118.10.10.146 offset -0.036180 sec
May 18 15:36:39 vlab_mgmt ntpd[22310]: ntpd exiting on signal 15
May 18 15:36:39 vlab_mgmt ntpd[10910]: ntpd 4.2.2p1@1.1570-o Sat Dec 19 00:56:13 UTC 2009 (1)
on this simu with problem i have :
root@vlab_mgmt(~)$ cat /etc/pam.d/crond
The PAM configuration file for the cron daemon
auth sufficient pam_env.so
auth required pam_rootok.so
on real ne
;root@PSS64-1-FLCA(~)$ cat /etc/pam.d/crond
The PAM configuration file for the cron daemon
auth sufficient pam_rootok.so
auth required pam_env.so
May 18 15:36:39 vlab_mgmt ntpd[10910]: precision = 1.000 usec
root@vlab_mgmt(~)$ file /lib64/security/pam_script.so
/lib64/security/pam_script.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
root@vlab_mgmt(~)$ file /usr/sbin/sshd
/usr/sbin/sshd: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped
root@vlab_mgmt(2511)$ uname -a
Linux vlab_mgmt 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
please do u know how to fix it ?
thanks