From owner-freebsd-security Wed May 2 8:58:44 2001 Delivered-To: freebsd-security@freebsd.org Received: from arka.gdansk.mtl.pl (arka.gdansk.mtl.pl [195.117.181.4]) by hub.freebsd.org (Postfix) with ESMTP id 6D7F537B424 for ; Wed, 2 May 2001 08:58:41 -0700 (PDT) (envelope-from grota@gdansk.mtl.pl) Received: by arka.gdansk.mtl.pl (Postfix, from userid 1037) id F12965D007; Wed, 2 May 2001 17:58:50 +0200 (CEST) Date: Wed, 2 May 2001 17:58:50 +0200 From: Andrzej Groth To: freebsd-security@freebsd.org Subject: Re: useradd/adduser Message-ID: <20010502175850.A81681@arka.gdansk.mtl.pl> References: <200105021613.RAA25130@mailgate.kechara.net> <20010502180257.B88365@ringworld.oblivion.bg> <20010502180543.C88365@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010502180543.C88365@ringworld.oblivion.bg>; from roam@orbitel.bg on Wed, May 02, 2001 at 06:05:43PM +0300 X-Operating-System: FreeBSD 4.3-STABLE i386 Organization: MAKOR Computer. Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 Administrator MULTINET S.A. http://www.multinet.pl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message