Skip to main content

Manage Octory Helper

Whether it is to execute a termination script with root privileges, or to execute Octory PRO actions, you might have to use the privileged Helper available on the website. This tip will show you how to intall the Helper as an admin and not through the authorization pane with Octory, as well as how to remove it.

info

The app will try to install the Helper with an admin authorization panel if it has to execute an action with root rights (like ExecuteCommand) although the Helper is not installed and ready to run. But - and it is an important “but” - it will require a user with admin rights to install the Helper.

Thus, when you deploy the app, the user will be asked to enter the admin credentials to install the Helper. This is the reason why the Helper is provided separately so that you can install it when deploying Octory with your root privileges.

Install the helper

Download the octo-helper.pkg from the downloads page, you then simply install it by double-clicking the .pkg file.

info

Starting from Octory 2.0.6, the Helper has received a minor security update to check the app's connection.

It's possible that you encounter a problem with the Helper when executing actions or running the termination script in specific use cases like prestage enrolments. When such problems arise, the logs print a "Couldn't get 'secCode' message.

To prevent the problem, it's possible to install the weak helper which will not check the connection. When doing so, it's your responsibility to remove the Helper once the onboarding is over. In that case, download the octo-helper-weak.pkg from the downloads page.

Check installation

To make sure the Helper is properly installed, you can run

sudo launchctl list  | grep com.amaris.octory.helper

If everything has been installed correctly, the command should output something like

-	0	com.amaris.octory.helper

Remove Helper

If you use Octory for onboarding only, it's better to remove it from the system once the Mac is ready. Doing so, it's necessary to remove the Helper to avoid this tool to be forgotten and remain on the system with the unavoidable risk to be misused by an attack.To do so, 3 steps have to be performed:

  1. Unload the daemon
  2. Remove the daemon
  3. Remove the Helper
    You can either execute the script removeHelper.sh from the HelperInstall folder or execute the following commands:
launchctl bootout system /Library/LaunchDaemons/com.amaris.octory.helper.plist
rm /Library/LaunchDaemons/com.amaris.octory.helper.plist
rm /Library/PrivilegedHelperTools/com.amaris.octory.helper

Discover more

  • You can learn more about security and the Helper on this page.
  • The tutorial An Octory PRO tour uses the Helper to execute a command with root privileges.