Subject: Re: batch passwd
To: Wojciech Puchar <wojtek@wojtek.3miasto.net>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-users
Date: 08/12/2001 10:52:59
On Sun, 12 Aug 2001, 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

"passwd" reads from the tty, not standard input. Try

  passwd &
  echo password\npassword >`tty`

or some variation thereof.


Frederick