Subject: Re: batch passwd
To: None <email@example.com>
From: Bernd Sieker <firstname.lastname@example.org>
Date: 08/12/2001 13:02:44
On 12.08.01, 12:27:39, Wojciech Puchar wrote:
> how to make passwd work in batch mode (from root)
> echo password\npassword|passwd user
> but it still inputs from console
You might take a look at chat (included in NetBSD) or
tcl-expect (in pkgsrc/lang) to achieve this.
I've never done this (and never will), so I can't give you detailed
instructions, I don't even know if chat would work at all.
NetBSD: We come in peace. We offer reliability.
-- David Maxwell