brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: mokutil --sb-state tells you if Secure Boot is on

Linux
~/tips/tip-security-mokutil-sb-state

mokutil --sb-state

Shows whether UEFI Secure Boot is switched on for the running system.

Whether Secure Boot is on is a question I would rather ask the system than answer from memory of a BIOS screen.

mokutil manages machine owner keys, and its --sb-state option shows the Secure Boot state. It takes no argument.

mokutil --sb-state

The man page describes it in three words, show Secure Boot state, and that is all there is to it.

Secure Boot makes the firmware check signatures on what it boots, which makes it harder to slip something in before the operating system starts. The fwupd security rating treats a disabled Secure Boot as a runtime issue and adds a ! to your Host Security ID. So the two commands pair up: fwupdmgr security gives the whole picture, and this one answers the single question about Secure Boot.

fwupdmgr security
mokutil --sb-state

The command only reports. You turn Secure Boot on in the UEFI setup, and the command cannot do that for you. It also says nothing about which keys the machine trusts, so a positive answer is the start of a check and not the end of one. Read your distribution’s notes before you enable it on a machine that already runs well.

Further reading: mokutil man page, Host Security ID (fwupd)

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link