Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
admin_grundlagen:bootloader [2020/01/29 11:27] ingo_wichmann [Grub2 mit Passwort absichern] |
admin_grundlagen:bootloader [2020/11/11 09:08] ingo_wichmann [Grub2 mit Passwort absichern] |
||
---|---|---|---|
Zeile 70: | Zeile 70: | ||
=== Grub absichern === | === Grub absichern === | ||
== Passwort Hash erzeugen == | == Passwort Hash erzeugen == | ||
- | Debian 6, CentOS 7, openSuSE Leap 15.1: | + | Debian 6, CentOS (ab 7), openSuSE Leap 15.1: |
grub2-mkpasswd-pbkdf2 | grub2-mkpasswd-pbkdf2 | ||
Zeile 88: | Zeile 88: | ||
chmod +x /etc/grub.d/45_password | chmod +x /etc/grub.d/45_password | ||
+ | |||
+ | == Auswahl ermöglichen, editieren absichern == | ||
+ | <file txt /etc/grub.d/10_linux> | ||
+ | ... | ||
+ | CLASS="--class gnu-linux --class gnu --class os --unrestricted" | ||
+ | ... | ||
+ | </file> | ||
== grub Konfigurationsdatei neu erzeugen == | == grub Konfigurationsdatei neu erzeugen == | ||
Zeile 95: | Zeile 102: | ||
grub-mkconfig -o /boot/grub/grub.cfg | grub-mkconfig -o /boot/grub/grub.cfg | ||
- | CentOS (7), openSuSE (Leap 15.1): | + | CentOS (ab 7), openSuSE (Leap 15.1): |
grub2-mkconfig -o /boot/grub2/grub.cfg | grub2-mkconfig -o /boot/grub2/grub.cfg | ||
Zeile 104: | Zeile 111: | ||
CentOS (8) | CentOS (8) | ||
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg | grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg | ||
- | |||
- | == Auswahl ermöglichen, editieren absichern == | ||
- | <file txt /etc/grub.d/10_linux> | ||
- | ... | ||
- | CLASS="--class gnu-linux --class gnu --class os --unrestricted" | ||
- | ... | ||
- | </file> | ||
== testen == | == testen == | ||
Zeile 116: | Zeile 116: | ||
grep password /boot/grub/grub.cfg | grep password /boot/grub/grub.cfg | ||
reboot | reboot | ||
- | CentOS (7): | + | CentOS (ab 7): |
grep password /boot/grub2/grub.cfg | grep password /boot/grub2/grub.cfg | ||
reboot | reboot |