[Pkg-shadow-devel] Login incorrect

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Thu Jul 14 06:38:42 UTC 2011


Thank you for the answer but it doesn't help.
I try :
1. Change the CONSOLE value in /etc/login.defs
2. Check /etc/login.access
3. Check /var/log/faillog
4. Use strace /bin/login

1. Change the CONSOLE value in /etc/login.defs
-CONSOLE /etc/securetty
---
# /bin/login
samson login: root
Password: 
Login incorrect
---
-CONSOLE console:tty01:tty02:tty03:tty04
---
# /bin/login
---
-#CONSOLE
---
# /bin/login 
samson login: root
Password: 
Login incorrect
---
-CONSOLE console
---
# /bin/login 
---

2. Check /etc/login.access
-file removed
-file created but lines commented
-file created containing only this line:
+ALL: ALL
For the 3 cases, it's the same behaviour as above.

3. Check /var/log/faillog
The file is empty.

4. Use strace /bin/login
With this utility I see a lot of (No such file or directory)
So I create the files missing:
-/var/log/btmp
-/var/run/nscd/socket
-/etc/localtime
-/lib/libnsl*
-/lib/libnss_*
-/var/run/utmpx
-/var/run/utmp
-/etc/ld.so.preload
-/etc/ld.so.cache
After this I got content in /var/log/faillog:
UNKNOWNN

Do you see an other thing to do to solve my problem?

On Wed, 13 Jul 2011 23:01:51 +0200
Nicolas François <nicolas.francois at centraliens.net> wrote:

> 
> Hello,
> 
> On Mon, Jul 11, 2011 at 04:17:18AM +0200, yugiohjcj-mailinglist at laposte.net wrote:
> > 
> > I do this :
> > ---
> > $ ./create_root_login.sh
> > $ sudo chroot create_root_login
> > bash-4.0# bin/login 
> > 
> > samson login: root
> > Password: 
> > Login incorrect
> > ---
> > 
> > So I can't begin session on the minimal system using /bin/login.
> > 
> > Do you see why I got this problem?
> 
> From the messages above, this could be:
>  * The console check (the non PAM version only allows root login on a
>    console).
>  * The login.access check (this should not be the case if there are no
>    /etc/login.access files)
>  * The faillog check (this should not be the case if there are no
>    /var/log/faillog files)
> 
> So my bet is that you should fix the CONSOLE setting in login.defs
> 
> I would recommend to check the system logs 
> (/var/log/auth.log / /var/log/syslog). Running login with strace might 
> also help.
> 
> Best Regards,
> -- 
> Nekral
> 



More information about the Pkg-shadow-devel mailing list