Resetting user password in cron

Tim Judd tajudd at
Fri Jul 17 02:17:57 UTC 2009

On 7/16/09, Jos Chrispijn <jos at> wrote:
> Can someone tell me how I can reset a user's password best in a cron job?
> If I do a password change from the prompt, I now have to re-enter the
> password, which I would not like to do in a cron job. Thanks/
> Jos Chrispijn

yes newpasswd | passwd username


not tried it myself.

More information about the freebsd-questions mailing list