Date: Fri, 17 Jul 2009 11:36:01 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Jos Chrispijn <jos@webrz.net>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Resetting user password in cron Message-ID: <44k527e2zi.fsf@be-well.ilk.org> In-Reply-To: <4ad871310907161806r1d0c2717idbcbffb257710063@mail.gmail.com> (Glen Barber's message of "Thu\, 16 Jul 2009 21\:06\:08 -0400") References: <4A5FC857.7020005@webrz.net> <4ad871310907161806r1d0c2717idbcbffb257710063@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Glen Barber <glen.j.barber@gmail.com> writes: > 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 And note the '-p' option in particular. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44k527e2zi.fsf>