Subject: Re: batch password change
To: Wojciech Puchar <wojtek@chylonia.3miasto.net>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 08/03/2002 07:06:35
On Sat, 3 Aug 2002, Wojciech Puchar wrote:

> is it possible for root to change someone's password without keyboard
> interactivity?

Let vipw(8) or chfn(1) handle both the file locking and running
pwd_mkdb(8).

chfn(1) and vipw(8) both use the EDITOR environment variable. So you can
use sed(1), ed(1), or any other non-interactive tool to change a password.

(Note that chfn(1) running as root gives more entries to change.)

   Jeremy C. Reed
   http://bsd.reedmedia.net/