Impostazione di una password GRUB
Puoi impostare una password per impedire agli utenti non autorizzati di accedere alla riga di comando GRUB, modificare gli argomenti della riga di comando del kernel o avviare distribuzioni OSTree non predefinite.
Creare l’hash della password
Puoi utilizzare grub2-mkpasswd-pbkdf2
per creare un hash della password per GRUB.
$ grub2-mkpasswd-pbkdf2
Inserisci la password: <PASSWORD>
Reinserisci la password: <PASSWORD>
L'hash PBKDF2 della tua password è grub.pbkdf2.sha512.10000.5AE6255...
grub2-mkpasswd-pbkdf2 tool is a component of the grub2-tools-minimal package on Fedora.
|
Butane config
With the password hash ready, you can now create the Butane config.
variant: fcos
version: 1.6.0
grub:
users:
- name: root
password_hash: grub.pbkdf2.sha512.10000.5AE6255...
The Butane config defines a GRUB superuser root
and sets the password for that user using a hash.
You can now use this config to boot a Fedora CoreOS instance.
Want to help? Learn how to contribute to Fedora Docs ›