/build/static/layout/Breadcrumb_cap_w.png

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 3 years ago
Red Belt
0

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

  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”.

Comments:
  • Is there verify for setting permissions exactly as typed with the quotes? - fleminsa 3 years ago
    • That's the way it shows up in the script view. You do need to encase the paths in quotes since they have spaces in the names - JasonEgg 3 years ago

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:

Share

 
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