Subject: Re: batch passwd
To: None <>
From: Bernd Sieker <>
List: netbsd-users
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)
> tried
> 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.

Bernd Sieker

NetBSD: We come in peace. We offer reliability.
		-- David Maxwell