From owner-freebsd-questions@FreeBSD.ORG Fri Jul 17 02:17:57 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 0059B1065672 for ; Fri, 17 Jul 2009 02:17:56 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id AF02B8FC18 for ; Fri, 17 Jul 2009 02:17:56 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yxe11 with SMTP id 11so954536yxe.3 for ; Thu, 16 Jul 2009 19:17:56 -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:content-type :content-transfer-encoding; bh=ZMbpXOXeQ0QwUtwOoralXNWO8jdqXHGvov/c0saNCUM=; b=X1zmIEFYlmsbP5g6nKc6s0MrSFeHdnCF6Xs+C7sWVGPBdhYmwr9mpPZMAkzRWnE3uu u5gLOgx0PwuKKeCmvb+ZrTAeEx7QywaEabdszxrVXM20TRELVSD3tXHen/JF7Qy3eyaN Q9OLVswDiSaypQpBN7dYCZ/Yhqxc9bab5Gy9g= 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 :content-type:content-transfer-encoding; b=Y9WKmtn6ul8TLilPHGFy9kJq2XEnWh9GAD/wxjNHQGzmqF5ZJHex9MAzyuLobyv18O bVdlcPllkU6eGUyYtGQqmb9KnR46ZLrt56njTh98x9n/g/d5J+mu1yk44mdV8LEzdAyy hJoJvix08F6WcDK6vzd4pExhK1kH/ZRUNQacQ= MIME-Version: 1.0 Received: by 10.100.121.12 with SMTP id t12mr791305anc.58.1247797076038; Thu, 16 Jul 2009 19:17:56 -0700 (PDT) In-Reply-To: <4A5FC857.7020005@webrz.net> References: <4A5FC857.7020005@webrz.net> Date: Thu, 16 Jul 2009 20:17:56 -0600 Message-ID: From: Tim Judd To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 02:17:57 -0000 On 7/16/09, 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/ > > Jos Chrispijn yes newpasswd | passwd username :) not tried it myself.