[K12OSN] creating accounts

gKw-X gkw-x at shaw.ca
Thu Sep 29 06:59:28 UTC 2005


I need to create a large number of accounts. I've whipped up a program 
to generate a script from a text list of students. What it generates 
looks like this:

groupadd "Grade3"
groupadd "Grade2"
groupadd "Grade1"
groupadd "Grade6"
groupadd "Grade7"
groupadd "Grade4"
groupadd "GradeK"
groupadd "Grade5"
useradd -c "Kayla Abad" -d /home/kabad -g Grade3 kabad -p kaab

Etc, one useradd line for each student. Does that look correct? I'm 
still new to linux, how can I run this script?




More information about the K12OSN mailing list