>데이터 베이스 >MySQL 튜토리얼 >ubuntu14.04中设定grub2密码

ubuntu14.04中设定grub2密码

WBOY
WBOY원래의
2016-06-07 15:38:401394검색

参考文献连接:ubuntu12.04中设定grub2密码 wlan@ubuntu:~$ grub-mkpasswd-pbkdf2 Enter password: Reenter password: PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.BA7149A9FD5BEC06DC1E1DF9B2297496F60A118A27A476FAAAE52CA772356A1B0A9DFE6

参考文献连接:ubuntu12.04中设定grub2密码

wlan@ubuntu:~$ grub-mkpasswd-pbkdf2
Enter password: 
Reenter password: 
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.BA7149A9FD5BEC06DC1E1DF9B2297496F60A118A27A476FAAAE52CA772356A1B0A9DFE688C9AFC1FE0854A9F7EBB73E188E115224FE5D382CAA5762ED85E3BE9.A6B017443B4E0DC0CCA4EE0E0EC5D7C8CC63BA3B71B0D3771FCCD49B5E2DA7D634DF574AA4443AC07C4A1EBCA1D860944C6605CED44B72116143701D6BF257D3


wlan@ubuntu:~$sudo  cp /etc/grub.d/00_header /etc/grub.d/00_header.bak


wlan@ubuntu:~$ sudo vi /etc/grub.d/00_header

在文件末尾添加

cat set superusers="wlan"
password_pbkdf2 wlan grub.pbkdf2.sha512.10000.BA7149A9FD5BEC06DC1E1DF9B2297496F60A118A27A476FAAAE52CA772356A1B0A9DFE688C9AFC1FE0854A9F7EBB73E188E115224FE5D382CAA5762ED85E3BE9.A6B017443B4E0DC0CCA4EE0E0EC5D7C8CC63BA3B71B0D3771FCCD49B5E2DA7D634DF574AA4443AC07C4A1EBCA1D860944C6605CED44B72116143701D6BF257D3
EOF

后保存退出

wlan@ubuntu:~$ sudo update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found initrd image: /boot/initrd.img-3.13.0-32-generic
done
重启成功~

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.