Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Using terminal on ARD to send Unix script

Good morning, I am attempting to disable the iSight on all of the iMacs in a building. I have found two ways to do this, an app named "iSightdisabler3.5" and a script "disableiSight.sh".


I was trying to use the later by send out:


"Disabling the iSight Camera Drivers..."


if [ -d "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/" ]; then

/bin/mv "$targetVolume/System/Library/Extensions/Apple_iSight.kext" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.fram ework/Versions/A/Resources/VDC.plugin" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServices.framework/V ersions/A/Resources/VDC.plugin/Contents/VDC" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

else

/bin/mkdir -p "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/Extensions/Apple_iSight.kext" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.fram ework/Versions/A/Resources/VDC.plugin" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

/bin/mv "$targetVolume/System/Library/PrivateFrameworks/CoreMediaIOServices.framework/V ersions/A/Resources/VDC.plugin/Contents/VDC" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"

fi


and the result is:


User uploaded file

User uploaded file

I am not very good at using terminal via ARD and often my commands fail, any help would be much appreciated.

Mac Pro, OS X Server, Lion

Posted on Jan 20, 2013 3:40 AM

Reply
1 reply

Jan 27, 2013 10:15 PM in response to wjr02149

Do you have JSS? I ask because your script contains the word JAMF allot.. if you do have a jss, is there a reason your trying to use ARD instead of your JSS to run this script?


When issuing the script from ARD as a send unix command, Have you cosnidered using the option to run command as user "root" ?


are you sure you want to do this? the script look like it dose more then just disable the isite. And do you know how to undo this if you change your mind?

Using terminal on ARD to send Unix script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.