2、使用echo命令 echo_test.sh 脚本内容: #!/bin/bash set PA “123456” echo -e “PA\nPA\n”| grub2-mkpasswd-pbkdf2 | grep PBKDF2 | awk ‘{print $7}’ 执行命令: ./echo_test.sh grub.pbkdf2.sha512.10000.56D43DEB2CF65BACA9F6B958041601DE2C7901266270A0A02EC4E0BCE0AE9DC9602E930...
# dnf install grub2-tools-minimal-1 1. The first thing you’ll do is create a password hash for your new users: On Ubuntu, use the following command: # grub-mkpasswd-pbkdf2 On CentOS, use the following command: # grub2-mkpasswd-pbkdf2 2. Next, open the /etc/grub.d/40_custom fil...
grub2-mkpasswd-pbkdf2 added The page(s) are in the correct platform directories: common, linux, osx, windows, sunos, android, etc. The page(s) have at most 8 examples. The page description(s) have links to documentation or a homepage. The page(s) follow the content guidelines. The ...