From owner-freebsd-hackers Fri Mar 19 13:13:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id A1C2814F30 for ; Fri, 19 Mar 1999 13:13:27 -0800 (PST) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id NAA09627; Fri, 19 Mar 1999 13:13:11 -0800 (PST) Date: Fri, 19 Mar 1999 13:13:11 -0800 (PST) From: Dan Busarow To: Joe Schwartz Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 3.1 adduser -batch gone? In-Reply-To: <199903191938.NAA10411@sierrahill.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 19 Mar 1999, Joe Schwartz wrote: > I'm migrating an ISP's NT e-mail server to FreeBSD 3.1. They've > provided user info including: > > login ID, full name, passwd > > I've set up the script using my FreeBSD 2.8 system to create the > adduser script which looks like: > > adduser -batch test4 '' '' 'MR. TEST' qwerty7 > > Works great on 2.8 and creates a record like this: > > test4:$1$Yk404UY5$vsmNN4Ah1sLVZyHX.NEok1:1024:15::0:0:MR. TEST:/home/test4:/bin/ > csh. > > > I tried running he script on the 3.1 machine and got a: > > '-batch no longer supported' error message. > > I was originally going to use 'pw', but not not understand > how to use it to set a passwd. Am I overlooking this option? Looks like I'll be migrating my adduser scripts too :) This seems to work # echo qwerty7 | pw useradd test4 -c "MR TEST" -h 0 -h is the magic Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message