Check Secure Boot Status with mokutil
Read the live Secure Boot state from UEFI firmware — 'SecureBoot enabled' or 'disabled' — in one command, no reboot into firmware setup required.
01Command
$ mokutil --sb-state02What it does
mokutil talks to the EFI runtime variable that the firmware sets, so it reports the real state the running kernel booted under — more trustworthy than eyeballing the BIOS screen. This matters before installing out-of-tree drivers like NVIDIA or VirtualBox kernel modules, which fail to load signature checks when Secure Boot is on unless you enroll a Machine Owner Key with mokutil --import. It works only on UEFI systems; on legacy BIOS boots the tool reports that Secure Boot isn't supported.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- SecureBoot — Debian WikiEvidence: Explains Secure Boot on Debian-family systems, the Machine Owner Key (MOK) mechanism, and using mokutil to inspect and enroll keys.
- mokutil(1) — Linux manual pageEvidence: mokutil --sb-state reports the current Secure Boot state as seen from the running kernel via the EFI variable.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.