grub密碼

grub密碼分爲:全區密碼(設置後修改grub標籤須要輸入grub全局密碼)和菜單密碼(設置後引導系統須要輸入grub菜單密碼)ide

grub全局密碼忘記,能夠進入救援模式(rescue,相似winPE),從新設置grub密碼工具


grub密碼除了能夠使用明文還能夠使用加密後的密文。加密

grub加密工具備:grub-md5-crypt和grub-crypt
spa

grub-md5-crypt:對密碼進行MD5加密輸出md5

grub-crypt:能夠則選擇加密方式--md五、--sha-25六、--sha-512(默認)
it


編輯文件/boot/grub/grub.confclass

設置GRUB全局密碼 格式以下:密碼

hiddemenuword

password=明文密碼 或 password --md5 MD5密文password --encrypted sha密文
di

設置GRUB菜單密碼格式以下:

title

password=明文密碼password --md5 MD5密文password --encrypted sha密文

相關文章
相關標籤/搜索