Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
when you installed the "shadow" program did you happen to invoke it??
IE............pwconv or
..............grpconv
you might need to go back into the host system and delete the shadow file and re-set roots password.............
quote from book
Quote:
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
passwords.
To enable shadowed passwords, run the following command:
/usr/sbin/pwconv
And to enable shadowed group passwords, run the following command:
/usr/sbin/grpconv
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.
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 ?
I resolved this trouble by compiling and installing the package shadow-4.0.4.1, 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.