I upgraded from openssh-3.9_p1_r3 by emerging openssh-4.2_p1 (released), restarted sshd, and could not login from a terminal, but can login from a console. In /var/log/messages, I get PAM unable to dlopen(/lib/security/system-auth) PAM [dlerror: /lib/security/system-auth: cannot open shared object file: No such file or directory] PAM adding faulty module /lib/security/system-auth I do not have pam_ssh installed. A workaround was to comment #UsePAM yes.
maybe pam guys can comment on this
Make sure your /etc/pam.d/sshd looks like this: #%PAM-1.0 auth include system-auth auth required pam_shells.so auth required pam_nologin.so account include system-auth password include system-auth session include system-auth Also, make sure that your pam is up-to-date (version 0.78-r2). It looks like it's treating system-auth as a module (hence looking in /lib/security/) instead of including the /etc/pam.d/system-auth file. I'd suspect your pam.d/sshd file has 'required' instead of 'include'.
When I use GCC 3.4.4-r1 and after I emerge openssh-4.2_p1, I cannot login from a remote terminal. When I use GCC 3.3.6 it works fine. I have 2 seperate base images so can swap between the two. The images are virgin with only GCC difference. My sshd is #%PAM-1.0 auth include system-auth auth required pam_shells.so auth required pam_nologin.so account include system-auth password include system-auth session include system-auth My USE="nptl" pam is version 0.78-r2
still havent posted `emerge info` ... also, what version of pam do you have on those machines ?
syd-gw ~ # emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r5 i686) ================================================================= System uname: 2.6.13-gentoo-r5 i686 AMD Sempron(tm) Processor 3100+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
can you post the output of `ls -l /etc/pam.d/` please
get back to us