Piping a password to passwd

Archaic archaic at linuxfromscratch.org
Tue Jan 25 06:28:55 PST 2005


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

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs




More information about the lfs-dev mailing list