Hi, I built rpm from openssh-2.5.1p1 srpm on redhat 6.2, then installed it. When trying to ssh from other machine, sshd gives error: ..... Feb 20 17:54:24 foo PAM_pwdb[925]: (login) session opened for user doe by LOGIN(uid=0) Feb 20 17:55:15 foo sshd[1342]: Connection closed by 192.168.0.3 Feb 20 17:55:43 foo sshd[1343]: PAM unable to dlopen(/lib/security/pam_stack.so) Feb 20 17:55:43 foo sshd[1343]: PAM [dlerror: /lib/security/pam_stack.so: cannot open shared object file: No such file or directory] Feb 20 17:55:43 foo sshd[1343]: PAM adding faulty module: /lib/security/pam_stack.so Feb 20 17:55:46 foo sshd[1343]: Failed password for doe from 192.168.0.3 port 1121 Feb 20 17:56:01 foo sshd[1343]: Failed password for doe from 192.168.0.3 port 1121 ..... Seems linked to wrong lib? Any suggestions? Thanks, John
On Tue, 20 Feb 2001, John XING wrote:> > I built rpm from openssh-2.5.1p1 srpm on redhat 6.2, > then installed it. When trying to ssh from other machine, > sshd gives error: > > ..... > Feb 20 17:54:24 foo PAM_pwdb[925]: (login) session opened for user doe by LOGIN(uid=0) > Feb 20 17:55:15 foo sshd[1342]: Connection closed by 192.168.0.3 > Feb 20 17:55:43 foo sshd[1343]: PAM unable to dlopen(/lib/security/pam_stack.so) > Feb 20 17:55:43 foo sshd[1343]: PAM [dlerror: /lib/security/pam_stack.so: cannot open shared object file: No such file or directory] > Feb 20 17:55:43 foo sshd[1343]: PAM adding faulty module: /lib/security/pam_stack.so > Feb 20 17:55:46 foo sshd[1343]: Failed password for doe from 192.168.0.3 port 1121 > Feb 20 17:56:01 foo sshd[1343]: Failed password for doe from 192.168.0.3 port 1121 > .....Upgrade your pam to the errata version. I think that should help; there is no pam_stack.so on RHL6x as shipped. -- Pekka Savola "Tell me of difficulties surmounted, Netcore Oy not those you stumble over and fall" Systems. Networks. Security. -- Robert Jordan: A Crown of Swords
On Tue, 20 Feb 2001, John XING wrote:
Perhaps it'd be best to add a Require: if you install RHL7 pam file.
system-auth comes in the same package as pam_stack.
As a bonus, a minor adjustment on buildroot.
Not tested.
--- openssh.spec~ Mon Feb 19 19:06:30 2001
+++ openssh.spec Wed Feb 21 19:34:29 2001
@@ -34,7 +34,7 @@
%endif
Copyright: BSD
Group: Applications/Internet
-BuildRoot: /tmp/openssh-%{version}-buildroot
+BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Obsoletes: ssh
PreReq: openssl >= 0.9.5a
Requires: openssl >= 0.9.5a
@@ -58,6 +58,9 @@
Obsoletes: ssh-server
PreReq: openssh = %{version}-%{release}, chkconfig >= 0.9
Requires: initscripts >= 4.16
+%if %{redhat7}
+Requires: /etc/pam.d/system-auth
+%endif
%package askpass
Summary: OpenSSH X11 passphrase dialog
> I built rpm from openssh-2.5.1p1 srpm on redhat 6.2,
> then installed it. When trying to ssh from other machine,
> sshd gives error:
>
> .....
> Feb 20 17:54:24 foo PAM_pwdb[925]: (login) session opened for user doe by
LOGIN(uid=0)
> Feb 20 17:55:15 foo sshd[1342]: Connection closed by 192.168.0.3
> Feb 20 17:55:43 foo sshd[1343]: PAM unable to
dlopen(/lib/security/pam_stack.so)
> Feb 20 17:55:43 foo sshd[1343]: PAM [dlerror: /lib/security/pam_stack.so:
cannot open shared object file: No such file or directory]
> Feb 20 17:55:43 foo sshd[1343]: PAM adding faulty module:
/lib/security/pam_stack.so
> Feb 20 17:55:46 foo sshd[1343]: Failed password for doe from 192.168.0.3
port 1121
> Feb 20 17:56:01 foo sshd[1343]: Failed password for doe from 192.168.0.3
port 1121
> .....
>
> Seems linked to wrong lib? Any suggestions?
>
> Thanks,
>
> John
>
--
Pekka Savola "Tell me of difficulties surmounted,
Netcore Oy not those you stumble over and fall"
Systems. Networks. Security. -- Robert Jordan: A Crown of Swords