Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating feature in mac app to override the users security setting

I'm a newbie at mac osx development. I would like to know if there's any way to override the mac desktop security settings to allow an application - which is not registered in the Mac App Store, to be installed?

The setting should come from the app that I'm trying to install. That means, whenever I install the app to any mac computer, regardless of its security settings as the following,

Allow applications downloaded from:

  • Mac App Store
  • Mac App Store and identified developers
  • Anywhere

The app should set the settings to Anywhere, allowing it to be installed. Any help would be very much appreciated.

like image 797
Kimpoy Avatar asked Aug 21 '12 00:08

Kimpoy


People also ask

How do I bypass the Security settings to open an app on Mac?

If you're certain that an app you want to install is from a trustworthy source and hasn't been tampered with, you can temporarily override your Mac security settings to open it. Go to Security & Privacy. Click the Open Anyway button in the General pane to confirm your intent to open or install the app.

How do you override a user on a Mac?

Open System Preferences > Users & Groups. Click the lock icon and enter your password. Click on the + sign. Change New Account to Administrator.

How do I make my Mac application accessible for all users?

Double click on the hard drive icon. Open the Applications folder that you see along with Library, Users, System, etc. Move the program to the Applications folder. Log into each account and drag and drop the app into the Dock to create a shortcut to it there.


2 Answers

  1. Launch System Preferences from the Apple menu.
  2. Choose “Security & Privacy” and then click the “General” tab, followed by clicking the lock icon in the corner to unlock the settings.
  3. Look for “Allow applications downloaded from:” and choose “Anywhere”.
  4. Accept the security warning and allow.

Note that you should be careful and aware that now the job of protecting the system from malicious apps belongs to you instead of the OS.

like image 155
CodeCurmudgeon Avatar answered Sep 17 '22 00:09

CodeCurmudgeon


Right click the (app) icon and click 'open' in contextual menu - no need to disable the OS security.

like image 26
Rick L Avatar answered Sep 17 '22 00:09

Rick L