Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | |||
admin_grundlagen:bootloader [2024/10/10 13:11] natureshadow2 [Grub2 mit Passwort absichern] |
admin_grundlagen:bootloader [2025/02/05 11:23] (aktuell) ingo_wichmann [Grub2 mit Passwort absichern] |
||
---|---|---|---|
Zeile 70: | Zeile 70: | ||
=== Grub absichern === | === Grub absichern === | ||
- | (( Weitere Absicherungsmöglichkeiten: | + | (( Unter Rocky Linux (ab 9) geht das einfacher: |
+ | grub2-setpassword | ||
+ | |||
+ | Bei anderen Distributionen: | ||
+ | |||
+ | <file txt /boot/grub/custom.cfg> | ||
+ | set superusers="root" | ||
+ | password_pbkdf2 root grub.pbkdf2.sha512.10000.FF73A777C6793E117430446F4D12F00D25DA53515B5048B1DAAA0688743550226CD05AD661EBDCA2AA1997AEBDC0C35C74CA48C9309FBED1C201C5875E3AD2E8.292A1642CB109860054562756A5AE950975B586A8DFDE535F566D1ADDCC6747349406E84862FFD9258F64268A36E63EF25A41A3CC0CD6291E63D98CEDDF00FE6 | ||
+ | </file> | ||
+ | |||
+ | In diesem Fall muss danach kein update-grub ausgeführt werden | ||
+ | |||
+ | |||
+ | |||
+ | Weitere Absicherungsmöglichkeiten: | ||
http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html | http://0pointer.net/blog/unlocking-luks2-volumes-with-tpm2-fido2-pkcs11-security-hardware-on-systemd-248.html | ||
)) | )) | ||
Zeile 93: | Zeile 107: | ||
chmod +x /etc/grub.d/45_password | chmod +x /etc/grub.d/45_password | ||
- | |||
- | Alternativ einfach in /boot/grub/custom.cfg (in diesem Fall muss danach kein update-grub ausgeführt werden): | ||
- | |||
- | <file txt /boot/grub/custom.cfg> | ||
- | set superusers="root" | ||
- | password_pbkdf2 root grub.pbkdf2.sha512.10000.FF73A777C6793E117430446F4D12F00D25DA53515B5048B1DAAA0688743550226CD05AD661EBDCA2AA1997AEBDC0C35C74CA48C9309FBED1C201C5875E3AD2E8.292A1642CB109860054562756A5AE950975B586A8DFDE535F566D1ADDCC6747349406E84862FFD9258F64268A36E63EF25A41A3CC0CD6291E63D98CEDDF00FE6 | ||
- | </file> | ||
== Auswahl ermöglichen, editieren absichern (Standard auf Rocky)== | == Auswahl ermöglichen, editieren absichern (Standard auf Rocky)== |