LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-12-2018, 11:07 AM   #1
linmeman
LQ Newbie
 
Registered: Apr 2018
Distribution: Debian
Posts: 6

Rep: Reputation: Disabled
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.

Thanks .
 
Old 04-12-2018, 11:20 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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.
 
Old 04-12-2018, 11:35 AM   #3
linmeman
LQ Newbie
 
Registered: Apr 2018
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the quick reply.

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.

Thanks again.
 
Old 04-12-2018, 11:45 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Try "passwd -d". That should delete the bad password and allow you to start again from scratch.
 
Old 04-12-2018, 11:47 AM   #5
linmeman
LQ Newbie
 
Registered: Apr 2018
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yeah I've tried that too. Still doesn't prompt me to enter a password, just runs through and doesn't allow me to do anything.
 
Old 04-12-2018, 11:53 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Let's get this clear: you enter the passwd command at a root shell prompt and nothing happens? You just get another shell prompt?
 
Old 04-12-2018, 12:06 PM   #7
linmeman
LQ Newbie
 
Registered: Apr 2018
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-12-2018, 12:14 PM   #8
linmeman
LQ Newbie
 
Registered: Apr 2018
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-13-2018, 02:06 AM   #9
linmeman
LQ Newbie
 
Registered: Apr 2018
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
Okay, I've fixed it. I exited chroot and mounted and populated /dev again. It worked and now the password has been successfully changed. Whew.
 
  


Reply



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
[SOLVED] "Give root password for maintenance or press CTRL+D to continue" problem enter root password ag33k Slackware - ARM 9 01-12-2017 04:23 PM
[SOLVED] Unexpected request to enter root password stuart_m Linux - Security 14 05-16-2011 09:08 AM
Unable to enter password in terminal to enter as root.. ANISHKUMAR.R Linux - Newbie 5 08-07-2010 07:46 AM
I am screwed...Cant enter Root password. bruce1271 Linux - Hardware 8 09-24-2003 02:53 PM
Can't enter root password Dave255 Linux - Newbie 6 06-12-2003 12:56 AM

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

All times are GMT -5. The time now is 12:36 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