From owner-freebsd-questions@FreeBSD.ORG Fri Jul 17 01:06:10 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 4D73C106564A for ; Fri, 17 Jul 2009 01:06:10 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id D501E8FC18 for ; Fri, 17 Jul 2009 01:06:09 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fxm24 with SMTP id 24so418592fxm.43 for ; Thu, 16 Jul 2009 18:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1HIKn0uXuDpvJmsDXxhEHyEmRRxE9p7j9hABQGTXo0Y=; b=RxRT2VSSTju+X+2Rq4Ie+DX7j9iL1BLyiYIeTgwHOVTrhMkcuGrgRx7vCGktNXeQDl STKssA0s8p22iO/PhDpzduOrZE+LLNr/wQcwk6AVtKMzeumI22jDuckFmfc2MX23Wb2p gLZcZHznRLPC73bIZSvcT42VP9TFetKHuMAuc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=DOljtd/zv8sdhs/PzgLAUj4rWznCU7KrJL1TzZKOvCH+PBAIpk9i71ZfxVF5e4iwNf v4btepzUHbbu9CxkeM+0+kHITuMEGcCjjIkxjGEzQ1gl0g6Ei37V+GeEtdQSAbeLtBI+ AOpqVTQKuwBlmoTTqAFp7B+rrt9VHtsa/bWMY= MIME-Version: 1.0 Received: by 10.204.112.130 with SMTP id w2mr349152bkp.56.1247792768972; Thu, 16 Jul 2009 18:06:08 -0700 (PDT) In-Reply-To: <4A5FC857.7020005@webrz.net> References: <4A5FC857.7020005@webrz.net> Date: Thu, 16 Jul 2009 21:06:08 -0400 Message-ID: <4ad871310907161806r1d0c2717idbcbffb257710063@mail.gmail.com> From: Glen Barber To: Jos Chrispijn Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Resetting user password in cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 01:06:10 -0000 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 -- Glen Barber