From owner-freebsd-questions Thu Nov 1 14:41: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from webs1.accretive-networks.net (webs1.accretive-networks.net [207.246.154.13]) by hub.freebsd.org (Postfix) with ESMTP id D862837B405 for ; Thu, 1 Nov 2001 14:41:03 -0800 (PST) Received: from localhost (davidk@localhost) by webs1.accretive-networks.net (8.11.1/8.11.3) with ESMTP id fA1Metr48105; Thu, 1 Nov 2001 14:40:55 -0800 (PST) Date: Thu, 1 Nov 2001 14:40:55 -0800 (PST) From: David Kirchner X-X-Sender: To: BSD Freak Cc: FreeBSD Questions Subject: Re: Changing a user password non-interactively In-Reply-To: <3e4c9c3e90fd.3e90fd3e4c9c@mbox.com.au> Message-ID: <20011101144022.R44499-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 2 Nov 2001, BSD Freak wrote: > to change $USER's password without prompting me at all but simply > changing the user password or returning an error message... Check out 'pw'. Example: echo "Password" | pw user mod -h 0 username To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message