Subject: Re: batch password change
To: None <netbsd-users@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: netbsd-users
Date: 08/03/2002 13:06:12
> is it possible for root to change someone's password without keyboard
> interactivity?

In /usr/libexec you have a makekey command that might do what you want:
 
echo "toto:`echo newpassword | /usr/libexec/makekey `:500:500::0:0:Test
user:/home/toto:/bin/ksh" >> /etc/master.passwd && pwd_mkdb -p
/etc/master.passwd

-- 
Emmanuel Dreyfus
manu@netbsd.org