On 23/05/2013 10:12 AM, Bruce Dubbs wrote: > Geoff Swan wrote: >> An interesting problem appeared during an LFS 7.3 build after the build >> and installation of shadow. >> Everything appeared successful, however when trying to set the root >> passwd it fails to prompt for the new passwd. >> It simply shows the lines below (as if a CR was hit) and returns to the >> prompt. >> >> root:/sources# passwd root >> 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. >> root:/sources# >> >> Any clues to further investigate this would be appreciated. > > I think you are in chroot but do not have the virtual file systems > mounted. You need access to /dev (and perhaps /dev/pts) inside chroot > to use the passwd command. See Section 6.2. > > Alternatively, I just copy /etc/{passwd,group,shadow,gshadow} from my > host to /mnt/lfs/etc. :) > > -- Bruce >
Absolutely right Bruce, thanks for picking that up. I turned on the dev server this morning and entered the chroot but forgot to mount the virtual file systems as well. - Geoff -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page