Piping a password to passwd

Jeremy Huntwork jmhuntwork at linuxfromscratch.org
Tue Jan 25 07:02:56 PST 2005


Jamie Bennett wrote:
> Archaic wrote on 25 January 2005 14:29
> 
>>On Tue, Jan 25, 2005 at 07:50:40AM -0500, Jeremy Huntwork wrote:
>>
>>>Use expect. Of course, that's assuming you've got expect built from
> 
> Chapter
> 
>>>5 and that you've got devpts mounted.
>>
>>Total overkill. ;)
>>
>>echo "username:password" |chpasswd
> 
> 
> He he, Jeremy. We use | chpasswd in the alfs profiles [1]

Doh. Should have looked there first! Ok, think I've embarrased myself 
enough for today...

:)

--
Jeremy Huntwork



More information about the lfs-dev mailing list