Title: RE: Mass User Import

Tony - Thanks for the tip.  I also received (on another list, courtesy of Thomas Chung) a script that has the advantage of creating the users' home directories without specifying them in the new user file.  For a file of new users called "students", with usernames in the first column and passwords in the second column:

#!/bin/sh

for i in $(awk '{print $1}' students)
do
useradd $i
grep $i students |awk'{print $2}'| passwd --stdin $i
done

-Glenn

-----Original Message-----
From: Anthony E. Greene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 9:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Mass User Import


man newusers:

Reply via email to