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.
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.
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.
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
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:
- Unload the daemon
- Remove the daemon
- 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