1
1
I am writing a program in Net Core and it seems like getting this information via the Terminal is the only way.
So how to check if Mac and Linux have secure boot enabled and disabled via command line?
1
1
I am writing a program in Net Core and it seems like getting this information via the Terminal is the only way.
So how to check if Mac and Linux have secure boot enabled and disabled via command line?
2
If you're on most GNU/linux distros, you can check if secure boot is enabled with the following command
mokutil --sb-state
Apple uses their own bootloader, which only boots into MacOS, so secure boot isn't really a thing on Macintosh computers.
macOS Mojave...
-bash: mokutil: command not found
– Tetsujin – 2019-07-09T08:10:47.863@Tetsujin The command is for GNU/Linux only. Please read the answer again, carefully. – rahuldottech – 2019-07-09T11:19:18.313
I was just pointing out that not only is secure boot "not a thing" on mac, you can't even ask about it from terminal. – Tetsujin – 2019-07-09T11:21:13.233
@Tetsujin Well, it's a GNU/Linux utility, not for Unix or MacOS, so that's kinda obvious, right? – rahuldottech – 2019-07-09T11:31:49.603
@rahuldottech I appreciate the answer. very helpful. The only reason I ask for mac is because I found this: https://support.apple.com/en-us/HT208330
– Danny – 2019-07-09T14:30:53.400@Danny You're welcome. Secure Boot in the context of Apple devices means something very different from what it means in the case of Windows or GNU/Linux (where it's a UEFI thing), and unfortunately there appears to be no way to check its functioning from terminal. – rahuldottech – 2019-07-09T17:59:53.567
@rahuldottech I can finally have closure on mac part, it was worth a try. – Danny – 2019-07-10T18:05:57.070
@Danny Yeah... Good luck with your app! – rahuldottech – 2019-07-10T18:47:39.813