From owner-freebsd-questions Sun Aug 20 21: 2:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 6CA6D37B422 for ; Sun, 20 Aug 2000 21:02:33 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7L42WL07401; Sun, 20 Aug 2000 21:02:32 -0700 (PDT) Date: Sun, 20 Aug 2000 21:02:32 -0700 From: Alfred Perlstein To: D M P Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Encrypting a password for insertion using chpass(1)? Message-ID: <20000820210232.H4854@fw.wintelcom.net> References: <39A099E1.51E6B546@aracnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <39A099E1.51E6B546@aracnet.com>; from dmp@aracnet.com on Sun, Aug 20, 2000 at 07:54:25PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * D M P [000820 19:54] wrote: > I need to syncronize a server's user passwords to those in a database. > The database spits out cleartext passwords. I have to somehow get > those into the password database on the server. The first way I came > up with was calling chpass(1) and feeding it the new password, but > according to the man page, it will only take encrypted passwords, not > cleartexts. > > How do I encrypt a password so I can insert it using chpass? > > Is there another way I can do this? the 'pw' utility can help. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message