[Inschool] Scripting add student users
MPs
inschool@kalamazoolinux.org
Tue, 21 Oct 2003 15:19:47 -0400 (EDT)
When the year began we replaced our Novell servers with Linux. That was
easy [relitivly]. Then we added teachers to the server. A small district,
very few teachers to add, so, again easy. Now we will need to add
students.
Our source files are in the form
last first[cr/lf]
or we might be able to get them in the form
last,first,uniq/public_ID[cr/lf]
Home directorys should be empty, passwords should be "last" [but can be
any arbitrary value], users need to be entered into the system
[passwd/groups] and into samba [smbpasswd], users should be of group
students.
And, is it possable to make samba "expire" a password so they, the user,
has to change it with the windows dialog?
I can write the script to a point, I just don't know how to get the text
file to $1 and $2. Any pointers, links, paths-to-doc-files, or a finished
script would be very nice.
Miles Pschigoda