cancel
Showing results for 
Search instead for 
Did you mean: 
MelG
Level 7

EEDK - Mac script to install a profile

Hello everyone,

I'm pretty new to creating .sh scripts that are run by the McAfee agent on Macs.

I'd like to create a .sh script that installs a profile that grays out the "Turn Off FileVault" button.  I have the profile file.  Where does the McAfee agent drop the install script and profile file on a Mac?  How is the path to the profile file written in the install script?  I tried the following and as I expected it didn't work:

------------------------------------------

#!/bin/sh

/usr/bin/profiles -I -F ./disallow_turn_off_filevault.mobileconfig

------------------------------------------

Appreciate your help and recommendations.

Thanks!

Mel

0 Kudos
2 Replies
tr0n
Level 7

Re: EEDK - Mac script to install a profile

Curious, what are you using to create the scripts?

Try editing the script with the sudo command to allow it to run as root.

0 Kudos
MelG
Level 7

Re: EEDK - Mac script to install a profile

Thanks Tr0n, sorry for the late response.. 

I'm using Notepad++ to create the script..

Thanks,

Mel

0 Kudos