From owner-freebsd-questions Fri Apr 23 13:30: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id C10351546D for ; Fri, 23 Apr 1999 13:30:04 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id NAA08863; Fri, 23 Apr 1999 13:27:32 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 23 Apr 1999 13:27:31 -0700 (PDT) From: Doug White To: notme Cc: "freebsd-questions@freebsd.org" Subject: Re: pw useradd and pw.conf In-Reply-To: <371FBD2E.5E00650E@lvdi.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 22 Apr 1999, notme wrote: > Emm... sorry for my ignorance and stupidity... > But can anyone please clearify "PASSWD" under: > echo ${PASSWD} | pw useradd {options} > > the following is what I tried, > > echo ${PASSWD} | pw useradd newuser > -d /user/home/newuser -m -g usergroup > (the whole thing is supposed to be on 1 line) > > and I got the following error: > PASSWD: Undefined variable You're taking it too literally. ${PASSWD} is a shell variable that contains the password. Assumably you're running this from a script if you want to do this automatically. > An example of how to use this command would > be greatly apprciated, for I am only a beginner > in FreeBSD. man sh Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message