iMovie w/ Network Accounts
Server : XServer Running 10.6.8 hosting Worgroup Manager for user management
Clients : 2010 MacBooks running 10.6.8
Software : iMovie 11
I work for a school district and teachers are starting to want their students to create iMovie projects. All students log in with network only accounts (local accounts are not created). Obviously I am not going to strore the iMovie footage on the network for the students to work off of. Instead iMovie Events.localized needs to be created on the local hard drive. That would not be very time consuming but creating individual folders for student events and setting file permissions for those folders is what is problematic. I do not want other users to see a students work since they will be sharing the iMovie Events folder.
The research I have done is suggesting a login hook. So here is what I have attempted with no success.
1) I create a script that looks like this :
#!/bin/bash
mkdir /Volumes/Macintosh\ HD/iMovie\ Events.localized/$1
chown -R $1 /Volumes/Macintsoh\ HD/iMovie\ Events.localized/$1
chmod 700 /Volumes/Macintosh\ HD/iMovie\ Events.localized/$1
I name is imovie.sh
2) I place it in a folder on the local drive at :
/Volumes/Macintosh HD/Library/Application Support/LOSD
3) I then go into terminal, as suggested by Apple support article HT2420 and run the following command:
sudo defaults write com.apple.loginwindow LoginHook /Library/Application\ Support/LOSD/imovie.sh
4) From workgroup manager I set the computer group to allow login hooks :
Workgroup Manager > Computer Group > Preferences > Login > Scripts, Select "Always", Check "Also execute the client computer's LoginHook script"
5)I log out and log in as a student
Results :
iMovie Events folder is not created
If I attempt to run the script while logged in as admin it will create the iMove Events folder but not the user's sub folder and in the terminal window it acts as though I have not entered an argument for chown. By that I mean it says:
usage : chown [-fhv] [-R [-H | -L | -P owner [:group] file ...
At least that is what I think that means. I am fairly new to scripting. So if anyone can help me out I would appreciate it, as will the teachers and students.
Thank you
Xserve, Mac OS X (10.6.8), 802.1x wireless Aruba