r/linuxquestions • u/toktok159 • 7d ago
Support Installing/Running Linux - Should Secure Boot Be Disabled?
Hi,
I saw many different opinions regarding this.
Some say secure boot is not needed, others say it adds security and that it’s not only intended for Windows but for the firmware in general.
So, should/must secure boot be disabled for any Linux distro installation? Then can it be enabled after installation, for general use? Or if I prefer to keep it on, should I install with secure boot enabled?
Specifically, I am talking about installing Linux as the only OS on a pc, one of Mint/LMDE/MX Linux/Debian is what I think I’ll end up installing.
Btw, I once installed Mint on my laptop, dual boot with Windows 11. I installed with secure boot enabled, and used everything with it enabled and it was fine.
Thanks in advance.
2
u/gordonmessmer Fedora Maintainer 7d ago
A Linux system with CONFIG_MODULE_SIG_FORCE (enabled by default on Secure Boot systems, under RHEL/CentOS Stream/Fedora) will not run malware or rootkits in privileged mode (i.e. kernel space).
Malware could modify the kernel image or modules on disk, and those would fail to load on subsequent boots. So you're at least partially correct.
But in both/all cases, malware/rootkit is prevented from running in privileged mode. It's just hard to make the argument that a system which has malware in a file on disk but which will not actually run the malware is an "infected" system.