[SOLVED] Not able to enter a root password for LFS 8.2 6.28
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.
Not able to enter a root password for LFS 8.2 6.28
Hello.
I am currently using Lubuntu version 17.10 and Linux From Scratch version 8.2 at chapter 6.28. I have compiled and installed Shadow 4.5 and done everything in between but when I came to configuring the package itself (6.28.2) and tried setting a root password using
Code:
passwd root
in the chroot environment and it ran:
Code:
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
Bad password: too short.
Warning: weak password (enter it again to use it anyway).
passwd: password changed.
Without actually prompting me to change the password. It's a small issue and it's annoying but I am very new to this and all the other threads I've seen about this topic have been resolved by rebooting and/or logging out. For me these options didn't work and it's driving me crazy. All help would be very much appreciated.
The quickest way to get out of this would have been to enter a different string the second time. This would have caused the passwd program to exit harmlessly. with an error. If you are warned that the password you have chosen is inadequate, you should not proceed with it, especially if it is a root password. This is a matter of basic security; root is the most powerful user there is, so you don't want a root password that is easy to crack.
Alternatively you can run the passwd program again now and choose a better password. You can run passwd at any time, as often as you like. There is certainly no need to log out or reboot. In fact you can't do either because you are in chroot at this stage. The system you are actually logged into is Ubuntu, not LFS.
The problem is that I'm not prompted to type in anything at all. It skips over it and doesn't ask me to type or confirm a password. I don't know why this is the case.
So I'm in the chroot environment and do what the book is telling me to do in chapter 6.28. When I get to configuring shadow I do passwd root and
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
Bad password: too short.
Warning: weak password (enter it again to use it anyway).
passwd: password changed.
comes out skipping the prompts and giving me another shell prompt without any password configuration.
So I'm in the chroot environment and do what the book is telling me to do in chapter 6.28. When I get to configuring shadow I do passwd root and
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
Bad password: too short.
Warning: weak password (enter it again to use it anyway).
passwd: password changed.
comes out skipping the prompts and giving me another shell prompt without any password configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.