LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   cannot change (root)password (https://www.linuxquestions.org/questions/linux-from-scratch-13/cannot-change-root-password-488438/)

jurp5 10-01-2006 06:46 AM

cannot change (root)password
 
After a lfs install with jhalfs i have to change my password.
After chrooting I type passwd and i get:
Changing password for root
Enter the new password (minimum of 5, maximum of 127 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).
Password changed.

I cant type anything
What am i doing wrong :Pengy:

--
Jurriaan Pruis

budword 10-01-2006 08:07 AM

passwd doesn't give any feedback that you are in fact typing your new password in. Try it, and see if the new password takes. :)I'm thinking that you are just getting confused by the lack of feedback provided by passwd. Otherwise I have no clue. :)

Axalon 10-01-2006 03:28 PM

Do you have the 'limits' and 'login.access' files in /etc?

jurp5 10-04-2006 09:07 AM

chpasswd did the trick, after rebooting i can use passwd! :cool:

maschelsea 04-03-2018 04:32 PM

I am also having this problem. I'm on 6.28 in the v8.2 book. I type 'passwd root' and it spits out a bunch of text and dumps me back at the LFS prompt. I tried using chpasswd root, and it gives me a non-blinking cursor and sits there. No output whatsoever. I do have the two files in /etc

Code:

(lfs chroot) root:/$ ls /etc/
default  gshadow      ld.so.conf.d  login.access  nscd.conf        passwd      rpc      shadow.lock
group        ld.so.cache  limits            login.defs          nsswitch.conf  passwd-      shadow  sysconfig
group-        ld.so.conf  localtime    mtab          opt                passwd.lock  shadow-
(lfs chroot) root:/$

I don't remember which package those files belong to. Please help!


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