Resetting user password in cron

Mel Flynn mel.flynn+fbsd.questions at mailing.thruhere.net
Fri Jul 17 01:14:10 UTC 2009


On Thursday 16 July 2009 16:39:51 Jos Chrispijn 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/

Take a look at pw(8), specifically usermod command, -h and -H option.
-- 
Mel


More information about the freebsd-questions mailing list