Terminal code problem

If typing the wrong code in Terminal What can I do now? I do not know what meaning of the code Pls help! T_T


Wrong-code: sudo spctl –mater-enable

Correct-code: sudo spctl –master-enable


Macbook (2016 or later)

Posted on Dec 10, 2018 7:33 PM

Reply
2 replies

Dec 10, 2018 10:09 PM in response to PlutoIX




If typing the wrong code in Terminal What can I do now? I do not know what meaning of the code Pls help! T_T

Wrong-code: sudo spctl –mater-enable
Correct-code: sudo spctl –master-enable


You are always better off copy & paste command line in using the terminal.


those two commands look the same to me.

sudo spctl --master-disable


I can not think of a single reason why you would want to disable the Gatekeeper assessments.

.



For the sake of completeness , status of your Gatekeeper from terminal:

spctl --status

spctl --master-enable
spctl --master-disable


Dec 10, 2018 8:34 PM in response to PlutoIX

Hi PlutoIX,


If you're wondering what the correct command does, it simply enables Gatekeeper if it was manually disabled. Gatekeeper keeps your Mac safe by refusing to open applications or programs by an unsigned developer. You can manually override this on a case-by-case basis by right-clicking (or holding down Control as you click on) the application in Finder, and then selecting Open.


The sudo prefix elevates the rest of the command to superuser (root) privileges, and requires your password to do so.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal code problem

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.