You are on page 1of 2

Tạo pass mã hóa:

grub2-mkpasswd-pbkdf2
thêm pass mã hóa vừa rồi vào file:
vi /boot/grub2/grub.cfg
tìm đến đoạn bắt đầu bằng:
### BEGIN /etc/grub.d/01_users ###
#if [ -f ${prefix}/user.cfg ]; then
# source ${prefix}/user.cfg
# if [ -n "${GRUB2_PASSWORD}" ]; then
set superusers="root"
export superusers
password_pbkdf2 root
grub.pbkdf2.sha512.10000.39785C66687465BD80535B8694B2C3FF
E245D6680FD6C1A1646747F1A30C1FA86BC5EF11FAF42F7B89E
49A37EAAD63D4D31E5D0C16E540623FD4EE6C6C522461.8696F
76257EC8B31A835794DDD365C0A76BE3353248EAD3F7C3024654
D62326D6BCDF05E7A3569519BF323FFCE06A8C3B013190368070
DAF06B8B042AB7B4858
# fi
#fi
Khởi động lại và ấn phím e, khi đó bắt nhập user và pass
Hoặc nhanh hơn:
grub2-setpassword
và nhập pass vào là xong

You might also like