Date: Fri, 27 Aug 1999 00:28:41 +0800 (PHT) From: "Francis A. Vidal" <francis@usls.edu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: pw useradd -h option Message-ID: <Pine.LNX.4.10.9908270022001.15703-100000@atlas.usls.edu>
next in thread | raw e-mail | index | archive | help
hi all,
can someone show me how to implement the `-h' option in a script? i'm
currently testing this script:
#!/bin/sh
#
while read username first middle last password
do
fullname="$first $middle. $last"
...
/usr/sbin/pw useradd $username -k /usr/share/uskel -s /sbin/nologin \
-d $homedir -c $fullname -m
done
how do i change their password non-interactively? BTW, is it normal for
the UID to have the same value if the -N option is used during the entire
lifetime of the script?
thanks!
--
francis vidal university of st. la salle, bacolod city, philippines
. . . . . . . PGP key available via e-mail / subject: get PGP key
u s l s N E T tel. nos. (6334).435.2324 / 433.3526
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.LNX.4.10.9908270022001.15703-100000>
