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)

Posted by: JasonEgg 1 month ago
Red Belt

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:


  1. Launch “/usr/bin\chmod” with params “a+x ”$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/Installer“”.
  2. Launch “/usr/bin\chmod” with params “a+x ”$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer“”.

On Success

  1. Launch “$(KACE_DEPENDENCY_DIR)/Sophos Installer.app/Contents/MacOS/tools/\InstallationDeployer” with params “--install”.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ