[Casper] Scripting help - Issue Solved

Cyrus Vahhaji Cyrus.Vahhaji at bestbuy.com
Fri Nov 7 08:39:02 PST 2008


Happy to say problem solved. Wrong permissions! Not sure how this happened.
Usually create my scripts in TextEdit and they typically default to 644 for
permissions. After creating the script I ran chmod +x which should change it
to 755. My script was set to 711.

Currently I¹m not using this script at imaging and merely want to add
another AD group to AD plug-in.

Thank you all for your quick responses.

Cyrus


From: Miles Leacy <miles.leacy at themacadmin.com>
Date: Fri, 7 Nov 2008 11:00:23 -0500
To: Cyrus Vahhaji <Cyrus.Vahhaji at bestbuy.com>
Subject: Re: [Casper] Scripting help

Are you running this at image time?  If so, it should be run "at reboot",
otherwise you're executing it on your utility drive or whatever you're
booted to while imaging.


On Fri, Nov 7, 2008 at 10:54 AM, Cyrus Vahhaji <Cyrus.Vahhaji at bestbuy.com>
wrote:
> Trying to add an AD group for the AD plug-in. Like to add
> "NA\bby-r-macadminusers-wk-f" to the existing three listed in the script using
> dsconfigad command.
> 
> Using the command below works fine in terminal but not with the script I've
> written. Just did a quick test in terminal and the script ran off the desktop.
> So there shouldn't be any syntax errors.
> 
> To answer a few questions/commnents  following this email.
> 
> * The log says it can't find the script and not the group.
> * I can run the script locally as mentioned above so the syntax should be OK.
> * I'm not and AD expert and haven't looked to see who are domain and admin
> members. They are populated when the machine is bound. Thanx for bringing this
> up and I'll look to see if they need to be in there or not.
> * Ryan, I'm not sure what you mention in your email is causing any issues, at
> least not based on running the script locally. Also tried your echo test and
> output was as expected.
> * I've also propagated permissions on the server with no change.
> 
> Thanx for all the input.
> 
> 
> 
> From: Miles Leacy <miles.leacy at themacadmin.com>
> Date: Fri, 7 Nov 2008 10:35:39 -0500
> To: Cyrus Vahhaji <Cyrus.Vahhaji at bestbuy.com>
> Cc: <Casper at list.jamfsoftware.com>
> Subject: Re: [Casper] Scripting help
> 
> 
> It would help if you tell us what you're trying to accomplish with the script.
> 
> I can alter this and make it do a bunch of different things.
> 
> 
> 2008/11/7 Cyrus Vahhaji <Cyrus.Vahhaji at bestbuy.com>
>> Questions for scripting experts. I'm trying to run this as a script and for
>> some reason its not running. Here is what I've scripted.
>> 
>> 
>> #!/bin/sh
>> 
>> dsconfigad -groups "NA\domain admins,NA\enterprise
>> admins,NA\bby-r-corpworkstationadmin-wk-f,NA\bby-r-MacAdminUsers-WK-F"
>> 
>> Does anything jump out that prevents this from running? After running the
>> script using Casper the log says it can't be found which I'm guessing there
>> is a syntax error somewhere?
>> 
>> Thanx,
>> Cyrus 
>> 
>> _______________________________________________
>> Casper mailing list
>> Casper at list.jamfsoftware.com
>> http://list.jamfsoftware.com/mailman/listinfo/casper
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Casper mailing list
>> Casper at list.jamfsoftware.com
>> http://list.jamfsoftware.com/mailman/listinfo/casper
>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20081107/09b33ce8/attachment.htm 


More information about the Casper mailing list