From owner-freebsd-questions Thu Aug 26 9:33:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from atlas.usls.edu (linux1.usls.edu [202.47.133.46]) by hub.freebsd.org (Postfix) with ESMTP id 6718714DCB for ; Thu, 26 Aug 1999 09:33:17 -0700 (PDT) (envelope-from francis@usls.edu) Received: by atlas.usls.edu (Postfix, from userid 500) id 0BC8EA4BC; Fri, 27 Aug 1999 00:28:42 +0800 (PHT) Received: from localhost (localhost [127.0.0.1]) by atlas.usls.edu (Postfix) with ESMTP id 08CAA7D8F for ; Fri, 27 Aug 1999 00:28:42 +0800 (PHT) Date: Fri, 27 Aug 1999 00:28:41 +0800 (PHT) From: "Francis A. Vidal" To: FreeBSD Questions Subject: pw useradd -h option 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 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