From owner-freebsd-security Wed Jun 6 9:56:56 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 A08CB37B407 for ; Wed, 6 Jun 2001 09:56:49 -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 f56GwQ451593; Wed, 6 Jun 2001 12:58:26 -0400 (EDT) (envelope-from david@slis-two.lis.fsu.edu) Date: Wed, 6 Jun 2001 12:58:26 -0400 (EDT) From: David Miner To: Olivier Nicole Cc: , Subject: Re: Encrypted passwords In-Reply-To: <200106061636.XAA02297@bazooka.cs.ait.ac.th> 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 Wed, 6 Jun 2001, Olivier Nicole wrote: > > > I wonder if crypt in Perl corresponds to crypt(3). There must b some > > > reason somewhere... > > > > Yeah, of course it does : > > > > setantae@shaft setantae$ perldoc -f crypt > > crypt PLAINTEXT,SALT > > > I'd assume it does, but I know I would check it anyway :) > > Olivier > If I knew how. My "inspiration" for this was a series of messages back on May 2nd. This is the main one I used for my example: Date: Wed, 2 May 2001 17:58:50 +0200 From: Andrzej Groth To: freebsd-security@FreeBSD.ORG Subject: Re: useradd/adduser On Wed, 02 May 2001, Peter Pentchev wrote: > On Wed, May 02, 2001 at 06:02:57PM +0300, Peter Pentchev wrote: > > On Wed, May 02, 2001 at 03:59:50PM +0100, Lee Smallbone wrote: > > > I see what you mean about the synopsis...! > > > > > > From what I can see it isn't possible to supply the password to pw? > > > I'm using md5 passwords, and can easily have the script in question encode > > > the password prior to calling pw, so is it possible to use (in the verse of > > > pw), something along the lines of: > > > > > > pw useradd -n test -c "Test User" -d /home2/test -m -s sh $md5encpass > > > > > > ? so... pw useradd -n test -c "Test User" -d /home2/test -s /bin/sh; chpass -p $md5encpass test ? ;-) br. -- Andrzej Groth I changed it to a system call from perl and went on. 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