Subject: Re: batch passwd
To: None <firstname.lastname@example.org>
From: Bernd Sieker <email@example.com>
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