LKBEN11659: How to check if Gatekeeper is active on your Mac.
Symptom
You want a command to check the status of Gatekeeper on MacOs.
Cause
Important for security.
Solution
To communicate with Gatekeeper from the terminal, you use the spctl command.
For checking the status you use:
spctl --status
On my system the answer is:
assessments enabled
The result will either be enabled or disabled. Enabled is the case when Gatekeeper allows apps from the appstore and from identified developers.
To view a list of approved apps you use:
spctl --list
Have fun.
Disclaimer:
The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!About the Author
Author:
- Keskon GmbH & Co. KGWim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.
Latest update: 20-04-2023