...

A bash script for creating student Open Directory accounts

Feb 12, 2015
I recently took over the IT Director job at a school that had been without a full-time IT person for almost a year. One of the awesome gifts from the previous IT person was a ten year old iMac with 1GB of RAM acting as the Open Directory server for the whole school. It was running OS 10.6 (Snow Leopard Server).

I decided to just start fresh with a new mac mini running Yosemite. I needed to transfer all the student accounts to the new server though so I wrote a bash script for that purpose. The script pulls from a CSV file that has four columns: grad_year, first_name, last_name, user_name. Here is the script on github in case it is useful to anybody else:

https://github.com/rabbitfighter/OD_user_migrate

< back