[Casper] run command as current user via casper policy?
Thomas Larkin
tlarki at kckps.org
Wed Apr 1 12:53:58 PDT 2009
Here is what I came up with, and I think I will have casper run it on
every client machine. Not all of our machines are on mobile accounts at
the moment so if it looped through all user accounts it would work.
Thus far, this is what I wrote, what do you all think?
#!/bin/sh
#loop through user accounts and enable plain text for AFP
file=com.apple.AppleShareClient.plist
for file in /Users/*/Library/Preferences/*
if [[ -e $file ]]
then defaults write com.apple.AppleShareClient "afp_cleartext_allow"
‑bool YES
else echo "no file found"
fi
done
exit
If any of you think of a better way I would gladly like to hear it.
Thanks,
Tom
>>> Clinton Blackmore <clinton.blackmore at westwind.ab.ca> 03/31/09 9:13
AM >>>
I've attached and pasted FixOfficeDefaults.sh, which does just the sort
of thing you are looking for. IIRC, I never did get it to show an error
in the Casper logs (although you can see that it tries to); but, it does
find the user and run defaults for them.
Cheers,
Clinton Blackmore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20090401/9e554286/attachment.htm
More information about the Casper
mailing list