From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 23:54:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4557916A4E0 for ; Wed, 2 Aug 2006 23:54:34 +0000 (UTC) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7112143D53 for ; Wed, 2 Aug 2006 23:54:33 +0000 (GMT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 818789B497; Thu, 3 Aug 2006 09:24:32 +0930 (CST) Date: Thu, 3 Aug 2006 09:24:32 +0930 From: Greg 'groggy' Lehey To: Simon Phoenix Message-ID: <20060802235432.GT48182@wantadilla.lemis.com> References: <58ebaa710608020248r1cfb7915t4caa0f6fcdbecb84@mail.gmail.com> <200608021553.19086.phoenix.lists@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HqPpMaT+a6TeY/Q4" Content-Disposition: inline In-Reply-To: <200608021553.19086.phoenix.lists@gmail.com> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: freebsd-questions@freebsd.org Subject: Re: Changing user password from command line 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: Wed, 02 Aug 2006 23:54:34 -0000 --HqPpMaT+a6TeY/Q4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wednesday, 2 August 2006 at 15:53:07 +0300, Simon Phoenix wrote: > On Wednesday 02 August 2006 12:48, Mike Fern wrote: >> Dear all, >> Does anybody know a program which is able to change user password from >> command line? >> We can add a user using single line pw (pw useradd), but i need >> ability to set the password also, instead of old command "passwd user" >> and then writing to stdin. > > man pw > > Look for -h option description. The advantage of using passwd(1) is that it is available on all UNIX-like systems (pw(8) isn't), and that it's easier to use. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --HqPpMaT+a6TeY/Q4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFE0Ts4IubykFB6QiMRAlnfAJ9wM/fmi5Y2cs0tRJag7w1AOebsHgCeML2c qk8EjiD7t4A45iJFdYp74F0= =RmS6 -----END PGP SIGNATURE----- --HqPpMaT+a6TeY/Q4--