Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 07-30-2004, 09:10 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Unhappy cannot login

Hi everyone,

I have just installed LFS 5.0.
After rebooting, I have the prompt ' lfs login : '
but I can't login as root or with another user I created before and I have no message error.
After a few seconds the prompt appears again like if no user even root really exists for my LFS system.

Thanks in advance for help !

Old 07-30-2004, 09:46 AM   #2
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
when you installed the "shadow" program did you happen to invoke it??
IE............pwconv or

you might need to go back into the host system and delete the shadow file and re-set roots password.............

quote from book
Configuring Shadow

This package contains utilities to modify users' passwords, add or delete
users and groups, and the like. We're not going to explain what 'password
shadowing' means. A full explanation can be found in the doc/HOWTO file
within the unpacked Shadow source tree. There's one thing to keep in mind
if you decide to use Shadow support: programs that need to verify
passwords (for example xdm, ftp daemons, pop3 daemons) need to be
'shadow-compliant', that is they need to be able to work with shadowed

To enable shadowed passwords, run the following command:


And to enable shadowed group passwords, run the following command:


Under normal circumstances, you won't have created any passwords yet.
However, if returning to this section to enable shadowing, you should
reset any current user passwords with the passwd command or any group
passwords with the gpasswd command.

Last edited by 320mb; 07-30-2004 at 09:52 AM.
Old 07-30-2004, 10:14 AM   #3
LQ Newbie
Registered: Nov 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your answer !

But why do I need to delete the shadow file on the host system (not on the LFS system) ?
Because I have no trouble to log on my host system only on the LFS system.

After a chroot command, I delete the file /etc/shadow, I invoke /usr/sbin/pwconv, /usr/sbin/grpconv and passwd.
I reboot but I have always the same problem, I cannot login as root on my LFS system.
I edit the file /etc/passwd I can see the crypted password in. Is this ok ?

Old 07-30-2004, 01:26 PM   #4
LQ Newbie
Registered: Nov 2003
Posts: 3

Original Poster
Rep: Reputation: 0

I resolved this trouble by compiling and installing the package shadow-, after trying many solutions.
I don't know why the package 4.0.3 didn't work on my system, I downloaded it and re-installing it 3 times but nothing has changed.

Thanks again for your help !



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
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
login screen font size over 100 - can't login xzy2435 Linux - Newbie 1 11-20-2003 11:40 AM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 09:43 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:24 PM.

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