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.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
JasonEgg
3 years ago
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:
Verify
- 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“”.
On Success
- Launch “$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/tools/\InstallationDeployer” with params “--install”.