Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109982 - cannot login from terminal with openssh-4.2_p1
Summary: cannot login from terminal with openssh-4.2_p1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 19:03 UTC by Kilburn Abrahams
Modified: 2005-11-08 21:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kilburn Abrahams 2005-10-20 19:03:47 UTC
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.
Comment 1 SpanKY gentoo-dev 2005-10-20 19:18:36 UTC
maybe pam guys can comment on this
Comment 2 Kevin Bryan 2005-10-21 13:58:50 UTC
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'.
Comment 3 Kilburn Abrahams 2005-10-21 19:39:56 UTC
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

Comment 4 SpanKY gentoo-dev 2005-10-29 20:41:32 UTC
still havent posted `emerge info` ... also, what version of pam do you have on
those machines ?
Comment 5 Kilburn Abrahams 2005-11-03 11:14:42 UTC
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
Comment 6 SpanKY gentoo-dev 2005-11-03 15:49:19 UTC
can you post the output of `ls -l /etc/pam.d/` please
Comment 7 SpanKY gentoo-dev 2005-11-08 21:05:54 UTC
get back to us