From owner-freebsd-questions Mon Mar 20 3:38:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from itsunix.uwc.ac.za (itsunix.uwc.ac.za [192.102.9.56]) by hub.freebsd.org (Postfix) with SMTP id 8BC2F37B615 for ; Mon, 20 Mar 2000 03:38:36 -0800 (PST) (envelope-from mark@itsunix.uwc.ac.za) Received: (qmail 27251 invoked from network); 20 Mar 2000 11:29:27 -0000 Received: from localhost.uwc.ac.za (HELO itsunix.uwc.ac.za) (root@127.0.0.1) by localhost.uwc.ac.za with SMTP; 20 Mar 2000 11:29:27 -0000 From: mark Organization: model connection To: freebsd-questions@FreeBSD.ORG Subject: Shell Scripting + passwd Date: Mon, 20 Mar 2000 13:18:16 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00032013292709.25812@itsunix.uwc.ac.za> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I am having trouble writing a shell script. I have already written one for one by one user creation. But I have about 8000 to do. This is the existing script ....... called mmuseradd /usr/sbin/useradd -d /mail/mailman/users/$1 -g popusers -m -k /etc/ skel.pop $1 /usr/sbin/edquota -p popdefault $1 passwd $1 echo $1 >> /mail/mailman/logs/added.users date >> /mail/mailman/logs/added.users How do I change this so that I can create users with passwds from a file? I can request the student list file in any manner that I like. E.g. studentnumber;passwd;name To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message