Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2001 14:40:55 -0800 (PST)
From:      David Kirchner <davidk@accretivetg.com>
To:        BSD Freak <bsd-freak@mbox.com.au>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Changing a user password non-interactively
Message-ID:  <20011101144022.R44499-100000@localhost>
In-Reply-To: <3e4c9c3e90fd.3e90fd3e4c9c@mbox.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011101144022.R44499-100000>