How can I test if secureboot is enabled?

Updated -
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

The mokutil command run as root will validate if secureboot is enabled or disabled with the command:

When secureboot is enabled:

# mokutil --sb-state
SecureBoot enabled

When secureboot is disabled:

# mokutil --sb-state
Failed to read SecureBoot

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content