[Pkg-shadow-devel] Login incorrect

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Thu Jul 14 12:20:05 UTC 2011

syslog isn't installed on my system.
/usr/bin/faillog just displays the content of /var/log/syslog, isn't it? So it is probably the same thing to do 'cat /var/log/syslog'.
The files I created was empty but the missing libraries was copied from an other operating system.

Yeeaaah! I can login now!
The only thing I have done was to compile again shadow with less features then only copy the libnss* libraries and the login.defs file.

The configuration step for shadow :
./configure --prefix=/ --sysconfdir=/etc --disable-shadowgrp --without-audit --without-libcrack --without-libpam --without-selinux --without-skey --without-sha-crypt --without-nscd

If I remove libnss* it doesn't work.
If I remove login.defs it doesn't work.
So these two things are mandatory requirements to make login works.

The strace utility was very useful to see that libnss* was required.
With ldd, that was impossible to see this :
ldd /bin/login 
	linux-gate.so.1 =>  (0xb7723000)
	libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb76db000)
	libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7595000)
	/lib/ld-linux.so.2 (0xb7724000)

Do you know why?

Thank you.

On Thu, 14 Jul 2011 11:22:25 +0200
Nicolas François <nicolas.francois at centraliens.net> wrote:

> Hello,
> Please check syslog (/var/log/auth.log or /var/log/syslog)
> UNKNOWN in faillog means either the tty or the user is unknown.
> (you can run /usr/bin/faillog to know which of the above cases)
> In both cases, it indicates an inconsistency in your system.
> At least if login cannot get the system's user information (getpwnam)
> correctly, then you would not be able to login.
> For the tty, it depends on the configuration.
> When you created files, did you copy them from a real system, or just
> created empty files.
> Not all of them would have to be created.
> -- 
> Nekral

More information about the Pkg-shadow-devel mailing list