Novell Cool Solutions: Cool Tool
Scripts to automate creation/deletion of student logins.
|Posted:||22 Aug 2005|
Please read the note from our friends in legal before using this file.
One problem that faces many College Linux administrators at the start of a new academic session is the creation of student logins. I wrote this tool to automate the process for me.
Useradd.sh creates the logins and deluser.sh allows you to clean up the logins when the class is finished. The second script, the delete script, relies on the naming convention used when the logins were created.
Our login names are based on the class name plus an index number. The script can be easily modified to reflect the naming convention used in your organisation (see comments). An initial password, the same as the user name, is assigned to the login.
The script also creates a test web page for the student's web design area (this assumes that you have the UserDir directive included in your Apache web server's configuration file).
Run this script with three parameters:
- The class name
- The starting number
- The end number
for example, to create 20 logins for class F051T use:
./useradd f051t 1 20
The deluser.sh script was created to clear out student accounts at the end of the academic year.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com