Login Script, using WGM

Discussion in 'Mac OS X Server, Xserve, and Networking' started by JGruber, May 10, 2012.

  1. JGruber macrumors 6502

    Joined:
    Feb 13, 2006
    #1
    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.
     

Share This Page