Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 21:06:08 -0400
From:      Glen Barber <glen.j.barber@gmail.com>
To:        Jos Chrispijn <jos@webrz.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Resetting user password in cron
Message-ID:  <4ad871310907161806r1d0c2717idbcbffb257710063@mail.gmail.com>
In-Reply-To: <4A5FC857.7020005@webrz.net>
References:  <4A5FC857.7020005@webrz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 16, 2009 at 8:39 PM, Jos Chrispijn<jos@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310907161806r1d0c2717idbcbffb257710063>