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 [2023/08/03 08:44] ingo_wichmann [Grub2 mit Passwort absichern] |
admin_grundlagen:bootloader [2023/10/11 14:32] natureshadow2 Anpassung für RockyLinux |
||
---|---|---|---|
Zeile 63: | Zeile 63: | ||
passwd | passwd | ||
- | ++++ bei Systemem mit SELinux | + | ++++ bei Systemem mit SELinux | |
touch /.autorelabel | touch /.autorelabel | ||
++++ | ++++ | ||
Zeile 74: | Zeile 74: | ||
)) | )) | ||
- | == Passwort Hash erzeugen == | + | == Passwort-Hash erzeugen == |
- | Debian (6), CentOS (ab 7), openSuSE Leap (ab 15.1): | + | CentOS (ab 7), Rocky, openSuSE Leap (ab 15.1): |
grub2-mkpasswd-pbkdf2 | grub2-mkpasswd-pbkdf2 | ||
Zeile 81: | Zeile 81: | ||
grub-mkpasswd-pbkdf2 | grub-mkpasswd-pbkdf2 | ||
- | == Passwort Hash eintragen == | + | == Grub-Configdatei mit Passwort Hash anlegen == |
<file txt /etc/grub.d/45_password> | <file txt /etc/grub.d/45_password> | ||
#!/bin/sh | #!/bin/sh | ||
Zeile 94: | Zeile 94: | ||
chmod +x /etc/grub.d/45_password | chmod +x /etc/grub.d/45_password | ||
- | == Auswahl ermöglichen, editieren absichern == | + | == Auswahl ermöglichen, editieren absichern (Standard auf Rocky)== |
<file txt /etc/grub.d/10_linux> | <file txt /etc/grub.d/10_linux> | ||
... | ... | ||
Zeile 107: | Zeile 107: | ||
grub-mkconfig -o /boot/grub/grub.cfg | grub-mkconfig -o /boot/grub/grub.cfg | ||
- | CentOS (ab 7), openSuSE (ab Leap 15.1): | + | CentOS (ab 7), Rocky, openSuSE (ab Leap 15.1): |
grub2-mkconfig -o /boot/grub2/grub.cfg | grub2-mkconfig -o /boot/grub2/grub.cfg | ||
Zeile 116: | Zeile 116: | ||
CentOS (8) | CentOS (8) | ||
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg | grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg | ||
+ | |||
+ | Rocky | ||
+ | grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg | ||
== testen == | == testen == | ||
- | Debian (ab 6), Ubuntu (14.04): | + | Debian (ab 6), Ubuntu (14.04), CentOS (ab 7): |
- | grep -E 'superusers|password_pbkdf2' /boot/grub/grub.cfg | + | grep -E 'superusers|password_pbkdf2' /boot/grub*/grub.cfg |
- | reboot | + | |
- | CentOS (ab 7): | + | |
- | grep -E 'superusers|password_pbkdf2' /boot/grub2/grub.cfg | + | |
reboot | reboot | ||