|
|
Hi folks,
BLFS 6.1
FC3 Host
On chroot environment after having installed
CrackLib-2.8.3
http://www.linuxfromscratch.org/ ... stlfs/cracklib.html
Linux-PAM-0.80
http://www.linuxfromscratch.org/ ... tlfs/linux_pam.html
reinstalled Shadow-4.0.9 according to the book;
http://www.linuxfromscratch.org/ ... postlfs/shadow.html
I was held on 'login' (with CrackLib), saying "bash: /etc/pam.d/login: No such file or directory"
According to the "Warning" near the bottom on the same page, reinstalled Shadow-4.0.9 with "--without-libpam" and also moved the /etc/login.defs.orig backup file to /etc/login.defs
Now I can't login LFS 6.1 with following warning;
Login AM Failure, aborting: Critical error - immediate abort
I did it twice including removing the source tree of Shadow-4.0.9 and download new packages from Internet as well
What I discovered are follows;
[root@localhost satimis]# find /mnt/lfs/ -name login.defs
- /mnt/lfs/sources/shadow-4.0.9/etc/login.defs
- /mnt/lfs/etc/login.defs
复制代码
[root@localhost satimis]# find /mnt/lfs/ -name security -type d
- ....
- /mnt/lfs/etc/security
- /mnt/lfs/lib/security
- /mnt/lfs/usr/include/security
- /mnt/lfs/usr/lib/firefox-1.0.6/chrome/en-US/locale/global/security
- /mnt/lfs/usr/src/linux-2.6.11.12/security
- ....
复制代码
[root@localhost satimis]# ls -al /mnt/lfs/etc/ | grep pam.d
[root@localhost satimis]# ls -al /mnt/lfs/etc/ | grep pam.conf
Both no printout
[root@localhost satimis]# find /mnt/lfs/ -name pam.d -type d
- /mnt/lfs/sources/shadow-4.0.9/etc/pam.d
- ......
复制代码
[root@localhost satimis]# ls -al /mnt/lfs/sources/shadow-4.0.9/etc/pam.d/- total 128
- drwxrwxrwx 2 satimis satimis 4096 May 23 19:33 .
- drwxrwxrwx 3 satimis satimis 4096 May 23 19:33 ..
- -rw-rw-r-- 1 satimis satimis 130 Oct 24 2004 chage
- -rw-rw-r-- 1 satimis satimis 133 Oct 24 2004 chpasswd
- -rw-rw-r-- 1 satimis satimis 133 Oct 24 2004 groupadd
- -rw-rw-r-- 1 satimis satimis 133 Oct 24 2004 groupdel
- -rw-rw-r-- 1 satimis satimis 133 Oct 24 2004 groupmod
- -rw-rw-r-- 1 satimis satimis 993 Oct 24 2004 login
- -rw-rw-r-- 1 satimis satimis 264 Oct 26 2004 Makefile.am
- -rw-rw-r-- 1 satimis satimis 9488 May 5 01:00 Makefile.in
- -rw-rw-r-- 1 satimis satimis 133 Oct 24 2004 newusers
- -rw-rw-r-- 1 satimis satimis 117 Oct 10 2000 passwd
- -rw-rw-r-- 1 satimis satimis 213 Jan 2 2005 su
- -rw-rw-r-- 1 satimis satimis 122 Oct 28 2004 useradd
- -rw-rw-r-- 1 satimis satimis 132 Oct 24 2004 usermod
复制代码
[root@localhost satimis]# find /mnt/lfs/ -name pam.conf
- /mnt/lfs/sources/Linux-PAM-0.80/conf/pam.conf
- /mnt/lfs/.Trash-0/files/Linux-PAM-0.80/conf/pam.conf
复制代码
[root@localhost satimis]# ls -al /mnt/lfs/sources/Linux-PAM-0.80/conf/pam.conf
- -rw-r--r-- 1 358 ftp 4415 Apr 8 2001 /mnt/lfs/sources/Linux-PAM-0.80/conf/pam.conf
复制代码
Both of them were not on;
/etc/pam.d/
/etc/pam.conf
Please advise how to fix the login problme. Whether moving pam.d and pam.conf to their correct directories.
B.R.
satimis |
|