#!/bin/bash # ----------------------------------------------------------- # Script to add multiple user, and set their default password. # Tested on RedHat Linux # First released : July 29, 2000 # sifu@rindu.net [http://sifu.rindu.net] # Things need to change: staffdir, shell, and user (file that # contain list of user accounts. # Don't forget to chmod 755 to this script # ----------------------------------------------------------- staffdir=/home/staff shell=/usr/local/bin/mailmenu cat user | while read name do if test "./$name" != "$0" then useradd $name -c $name -d $staffdir/$name -s $shell echo $name.8$ | passwd --stdin $name fi done