Piping a password to passwd

Jamie Bennett jamie_bennett at pcpmicro.co.uk
Tue Jan 25 06:25:03 PST 2005


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].
 
> Archaic

	--	Jamie

[1]
http://svn.linuxfromscratch.org/viewcvs.cgi/profiles/LFS/trunk/chapter05/add
inguser.xml?rev=1570&root=ALFS&view=auto



More information about the lfs-dev mailing list