From owner-freebsd-questions@FreeBSD.ORG Fri Jul 17 15:36:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11F0D106566C for ; Fri, 17 Jul 2009 15:36:03 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id DEF058FC13 for ; Fri, 17 Jul 2009 15:36:02 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 8199 invoked from network); 17 Jul 2009 15:36:02 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Jul 2009 15:36:02 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id BFC6E50828; Fri, 17 Jul 2009 11:36:01 -0400 (EDT) To: Jos Chrispijn , FreeBSD Questions References: <4A5FC857.7020005@webrz.net> <4ad871310907161806r1d0c2717idbcbffb257710063@mail.gmail.com> From: Lowell Gilbert Date: Fri, 17 Jul 2009 11:36:01 -0400 In-Reply-To: <4ad871310907161806r1d0c2717idbcbffb257710063@mail.gmail.com> (Glen Barber's message of "Thu\, 16 Jul 2009 21\:06\:08 -0400") Message-ID: <44k527e2zi.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Resetting user password in cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 15:36:03 -0000 Glen Barber writes: > On Thu, Jul 16, 2009 at 8:39 PM, 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/ >> > > 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/