Date: Thu, 22 Apr 1999 11:42:36 -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.9904221140450.7869-100000@resnet.uoregon.edu> In-Reply-To: <371E8846.5C2DC8B3@lvdi.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 21 Apr 1999, notme wrote: > 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? Usually it uses standard input, but you can specify a different filehandle number if, say, you're fork()-n-exec()-ing pw and clear the close-on-exec flag for a filehandle, then pass that filehandle to pw. > 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"... :) Provide it on standard input, that's the default. pw useradd {options} < `echo ${PASSWD}` 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.9904221140450.7869-100000>