From owner-freebsd-questions Thu Apr 22 17:19:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from c000.paix.cp.net (c000-h002.c000.paix.cp.net [209.228.15.140]) by hub.freebsd.org (Postfix) with SMTP id 0E6AA15983 for ; Thu, 22 Apr 1999 17:19:40 -0700 (PDT) (envelope-from notme@lvdi.net) Received: (cpmta 18517 invoked from network); 22 Apr 1999 17:17:07 -0700 Received: from usr5-ppp60.lvdi.net (HELO lvdi.net) (216.24.141.60) by smtp.lvdi.net with SMTP; 22 Apr 1999 17:17:07 -0700 X-Sent: 23 Apr 1999 00:17:07 GMT Message-ID: <371FBD2E.5E00650E@lvdi.net> Date: Thu, 22 Apr 1999 17:22:06 -0700 From: notme Organization: me++ X-Mailer: Mozilla 4.51 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Doug White Cc: "freebsd-questions@freebsd.org" Subject: Re: pw useradd and pw.conf References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 An example of how to use this command would be greatly apprciated, for I am only a beginner in FreeBSD. Thank you in advance, and sorry for the trouble. Frankie Doug White wrote: > On Wed, 21 Apr 1999, notme wrote: > > > Hi, > > When I read the man pages for pw.conf, I ran into an option > > that allows me to set a specific password to the user via filehandle. > > Does anyone have any idea on how to do that? > > > > If not, is there any other way of setting password of an account > > when creating it with a shell script using pw? (Or actually, any > > other way as long as it is not manually typing in "passwd"... :) > > Acutally, better command: > > echo ${PASSWD} | pw useradd {options} > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message