Skip to content

Instantly share code, notes, and snippets.

@crsleeth
Last active April 10, 2026 21:15
Show Gist options
  • Select an option

  • Save crsleeth/45584b16d8aecde1ca3fb9f416c5dc6f to your computer and use it in GitHub Desktop.

Select an option

Save crsleeth/45584b16d8aecde1ca3fb9f416c5dc6f to your computer and use it in GitHub Desktop.
Jamf Compliance Editor helper fix
#!/bin/sh
HELPER_SRC="/Applications/Jamf Compliance Editor.app/Contents/Resources/com.jamf.complianceeditor.helper"
HELPER_DST="/Library/PrivilegedHelperTools/com.jamf.complianceeditor.helper"
PLIST_DST="/Library/LaunchDaemons/com.jamf.complianceeditor.helper.plist"
# Create PrivilegedHelperTools directory if missing
if [ ! -d /Library/PrivilegedHelperTools ]; then
mkdir -p /Library/PrivilegedHelperTools
chmod 755 /Library/PrivilegedHelperTools
chown root:wheel /Library/PrivilegedHelperTools
fi
# Copy helper binary
cp "$HELPER_SRC" "$HELPER_DST"
chmod 544 "$HELPER_DST"
chown root:wheel "$HELPER_DST"
# Write launchd plist with absolute Program path
cat > "$PLIST_DST" << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.jamf.complianceeditor.helper</string>
<key>Program</key>
<string>/Library/PrivilegedHelperTools/com.jamf.complianceeditor.helper</string>
<key>MachServices</key>
<dict>
<key>com.jamf.complianceeditor.helper</key>
<true/>
</dict>
<key>StandardErrorPath</key>
<string>/tmp/jce.helper.log</string>
</dict>
</plist>
EOF
chmod 644 "$PLIST_DST"
chown root:wheel "$PLIST_DST"
# Unload existing service if running, then load
/bin/launchctl bootout system/com.jamf.complianceeditor.helper 2>/dev/null
/bin/launchctl bootstrap system "$PLIST_DST"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment