Resetting user password in cron
Glen Barber
glen.j.barber at gmail.com
Fri Jul 17 01:06:10 UTC 2009
On Thu, Jul 16, 2009 at 8:39 PM, Jos Chrispijn<jos at webrz.net> 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/
>
Hi, Jos
You can use chpass(1) in root's crontab:
http://www.freebsd.org/cgi/man.cgi?query=chpass&sektion=1
--
Glen Barber
More information about the freebsd-questions
mailing list