From owner-freebsd-questions Wed Aug 26 13:52:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA15159 for freebsd-questions-outgoing; Wed, 26 Aug 1998 13:52:07 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15061 for ; Wed, 26 Aug 1998 13:51:59 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.8.8/8.8.8) id PAA06885; Wed, 26 Aug 1998 15:49:42 -0500 (CDT) (envelope-from dan) Message-ID: <19980826154942.A6695@emsphone.com> Date: Wed, 26 Aug 1998 15:49:42 -0500 From: Dan Nelson To: Alicia Castro Parra , freebsd-questions@FreeBSD.ORG Subject: Re: Password change with a command line References: <3.0.5.32.19980826150304.0083fe30@werken.ufro.cl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.2i 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 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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