Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JGruber

macrumors 6502
Original poster
Feb 13, 2006
348
2
Ok, so I'm having a hard time getting this stupid simple login script to work.

In WGM, under the computer groups > Pref > Login > Scripts, I've added a login script.

Below is what I am adding to the script

Code:
#!/bin/bash defaults write -app iMovie allowNV -bool true

When I execute the script locally on my laptop, I get the following error in terminal

Code:
Jeff$ /Users/Jeff/login ; exit;
/usr/bin/defaults: /usr/bin/defaults: cannot execute binary file
logout

I've done the following to make it executable
Code:
chmod +X /path/to/loginscript

I can't set the script to login for each account, because the accounts are network based, and on 37 iMacs, with 125 students a day, the above way is a must for me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.