Subject: Re: batch passwd
To: None <email@example.com>
From: David Maxwell <firstname.lastname@example.org>
Date: 08/12/2001 21:53:58
On Sun, Aug 12, 2001 at 01:02:44PM +0200, Bernd Sieker wrote:
> 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.
expect provides a few ways to do what you want. Install the
package, and you'll get 'autopasswd' which does passwd with
There's also tkpasswd - which may be useful - you mentioned supporting
users who can only point and click, but didn't say whether that's in X,
or a browser. tkpasswd gives and X interface for password changes.
David Maxwell, email@example.comfirstname.lastname@example.org -->
If you don't spend energy getting what you want,
You'll have to spend it dealing with what you get.