/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 1 year 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 11 months 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 10 months ago
 
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