LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-23-2005, 11:48 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Login problem


Hi folks,

BLFS 6.1
FC3 Host

On chroot environment after having installed
CrackLib-2.8.3
http://www.linuxfromscratch.org/blfs.../cracklib.html
Linux-PAM-0.80
http://www.linuxfromscratch.org/blfs...linux_pam.html

reinstalled Shadow-4.0.9 according to the book;
http://www.linuxfromscratch.org/blfs...fs/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:PAM 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
Code:
/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
Code:
....
/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
Code:
/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/
Code:
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
Code:
/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
Code:
-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
 
Old 08-24-2005, 12:12 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
You need to create the directory /etc/pam.d, then create the files.
 
Old 08-24-2005, 02:58 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi kjordan,

Quote:
You need to create the directory /etc/pam.d, then create the files.
Whether I can move/cp "/mnt/lfs/sources/shadow-4.0.9/etc/pam.d/* to "/mnt/lfs/etc/pam.d". The files are there;

[root@localhost satimis]# ls -al /mnt/lfs/sources/shadow-4.0.9/etc/pam.d/
Code:
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
satimis
 
Old 08-24-2005, 06:18 AM   #4
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Well, I'm not sure how well those default ones will work or how they compare to the ones the BLFS instructions create, so I'd just:

install -v -m755 -d /etc/pam.d
Then follow the instructions for creating the files in the shadow section.
 
Old 08-24-2005, 10:22 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi kjordan,

BLFS 6.1
FC3 Host
chroot environment

Login revived after running;
# install -v -m755 -d /etc/pam.d

and compketing Section Shadow-4.0.9
http://www.linuxfromscratch.org/blfs...fs/shadow.html

Re: Note (on bottom of that pape)
Code:
ENV_SUPATH is no longer supported. You must create a valid /root/.bashrc file to provide a modified path for the super user.
The file already existed.

[root@localhost satimis]# cat /mnt/lfs/root/.bashrc
Code:
# Begin ~/.bashrc
# Written for Beyond Linux From Scratch
# by James Robertson <jameswrobertson@earthlink.net>

# Personal aliases and functions.

# Personal environment variables and startup programs should go in
# ~/.bash_profile.  System wide environment variables and startup
# programs are in /etc/profile.  System wide aliases and functions are
# in /etc/bashrc.

if [ -f "/etc/bashrc" ] ; then
        source /etc/bashrc
fi

# End ~/.bashrc
What shall I change here.

Login as "root'
Code:
PAM-securetty[3103]: Couldn't open /etc/securetty
....
Lgin[3098:PAM pam_putenv: delet non-existent entry :PATH
X-window and Firefox can be started.


Login as "user"
Code:
....
No directory, logging in with HOME=/
id : cannot find name for group ID100
X-window cannot be started

Please advise how to get them fixed. TIA

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in login linuxthebest Linux - Newbie 3 08-09-2005 09:20 PM
Login problem Frederik Valeur Linux - Software 3 06-12-2005 09:46 PM
Login Problem KAAZ Linux - Distributions 2 10-26-2004 10:56 PM
Login Problem sratz Linux - Security 1 07-15-2004 09:40 AM
Login problem with RH 7.1 bildnisse Linux - Newbie 2 01-01-2002 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration