Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 1998 15:49:42 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Alicia Castro Parra <acastro@werken.ufro.cl>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Password change with a command line
Message-ID:  <19980826154942.A6695@emsphone.com>
In-Reply-To: <3.0.5.32.19980826150304.0083fe30@werken.ufro.cl>; from "Alicia Castro Parra" on Wed Aug 26 15:03:04 GMT 1998
References:  <3.0.5.32.19980826150304.0083fe30@werken.ufro.cl>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 26), Alicia Castro Parra said:
> I want to know if there is a way to change passwords using a command
> line (like passwd user newpass). I need to change a great number of
> passwords and I don't want to type them every time. I found something
> about a function named crypt, but I don't know how to use it

echo "newpass" | pw usermod bob -h 0

The password is read via stdin so that you don't see the password on
the "pw" commandline.  For more deatils, man pw.

	-Dan Nelson
	dnelson@emsphone.com

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?19980826154942.A6695>