From owner-freebsd-security Thu Jun 7 13:32:22 2001 Delivered-To: freebsd-security@freebsd.org Received: from slis-two.lis.fsu.edu (slis-two.lis.fsu.edu [128.186.72.102]) by hub.freebsd.org (Postfix) with ESMTP id 1490437B409 for ; Thu, 7 Jun 2001 13:32:14 -0700 (PDT) (envelope-from david@slis-two.lis.fsu.edu) Received: from localhost (david@localhost) by slis-two.lis.fsu.edu (8.11.1/8.11.1) with ESMTP id f57KXcb65568; Thu, 7 Jun 2001 16:33:38 -0400 (EDT) (envelope-from david@slis-two.lis.fsu.edu) Date: Thu, 7 Jun 2001 16:33:38 -0400 (EDT) From: David Miner To: "Karsten W. Rohrbach" Cc: Ralph Huntington , edwin chan , Olivier Nicole , Subject: Re: Encrypted passwords In-Reply-To: <20010607220227.W59617@mail.webmonster.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 7 Jun 2001, Karsten W. Rohrbach wrote: > correct me if i am just stupid, but i don't get the point > echo -n passW0Rd | pw -u testuser -h 1 > sets the password of "testuser" to "passW0Rd", soring it in the auth > system you prefer in encrypted form. am i missing something? > > /k > No, I don't think you have missed the point. Using echo and piping it into pw would work. I am trying read the cleartext password from a file and, since I haven't figured out how the pw file descriptor works, encrypt it and use the chpass utility to get it into /etc/passwd. Because I have to do this 50 accounts at a time. It looks like it encrypts correctly, but the user cannot log in with that password. So something must be wrong with the encryption system or the way I have put the pieces together. David --------------------------------------------------------------------- David R. Miner miner@lis.fsu.edu Systems Integrator voice: 850-644-8107 School of Information Studies fax: 850-644-6253 Florida State University Tallahassee, FL 32306-2100 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message