Silent Mac script
I am attempting to create a bash script to deploy Sophos endpoint via KACE. Is there a way to have the password including in the script? The command line works when testing on a mac but prompts for a password. We need the install to be silent without having to enter a password.
Are you using Sophos Central? If so, you should be able to generate an installer from Sophos Central Admin that doesn't require a password. Here's how my Sophos install looks in KACE scripting:
- Launch “/usr/bin\chmod” with params “a+x ”$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/Installer“”.
- Launch “/usr/bin\chmod” with params “a+x ”$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer“”.
- Launch “$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/tools/\InstallationDeployer” with params “--install”.