Subject: Re: batch password change
To: Wojciech Puchar <>
From: Jeremy C. Reed <>
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

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