Date: Fri, 23 Apr 1999 13:27:31 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: notme <notme@lvdi.net> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG> Subject: Re: pw useradd and pw.conf Message-ID: <Pine.BSF.4.03.9904231326520.29524-100000@resnet.uoregon.edu> In-Reply-To: <371FBD2E.5E00650E@lvdi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9904231326520.29524-100000>