From owner-freebsd-questions Sun Aug 20 19:54:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.aracnet.com (mail2.aracnet.com [216.99.193.35]) by hub.freebsd.org (Postfix) with ESMTP id AF80137B42C for ; Sun, 20 Aug 2000 19:54:30 -0700 (PDT) Received: from aracnet.com (216-99-218-166.dsl.aracnet.com [216.99.218.166]) by mail2.aracnet.com (8.9.3/8.9.3) with ESMTP id TAA22439 for ; Sun, 20 Aug 2000 19:54:35 -0700 Message-ID: <39A099E1.51E6B546@aracnet.com> Date: Sun, 20 Aug 2000 19:54:25 -0700 From: D M P Organization: dmp@aracnet.com X-Mailer: Mozilla 4.51 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Encrypting a password for insertion using chpass(1)? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? -- dmp@{aracnet|coffeylabs).com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message