Resetting user password in cron

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Fri Jul 17 15:36:03 UTC 2009


Glen Barber <glen.j.barber at gmail.com> writes:

> 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

And note the '-p' option in particular.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list