中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 05:19
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » GRUB4DOS version 0.44, can you disable the edit command at the boot screen?
Printable Version  1,718 / 3
Floor1 kelvinso Posted 2008-08-09 23:18
初级用户 Posts 16 Credits 42
Although passwords can be encrypted, they can be edited and modified. What command can be used to prohibit this function?
Floor2 不点 Posted 2008-08-10 09:53
银牌会员 Posts 1,115 Credits 2,491
The `password` command needs to be used together with the `lock` command.

When the `lock` command is executed, it displays a password input interface, requiring the user to provide a password. If the user fails to provide the correct password, the execution result of the `lock` command is an error, and then subsequent commands cannot be executed.

You can place the `password` command before `title`, so that the entire menu will be protected. Unless you enter `p` as prompted on the screen and provide the correct password (which is equivalent to unlocking), all menu items cannot be changed. But at this time, the user can execute all the menu items in your existing menu. Unless you use `lock` to lock a certain menu, the user will not be able to execute the commands in the corresponding menu.

Note that it is more appropriate to place `lock` in the first statement after `title`, because only when the program executes to `lock` will it prevent the user from further execution. You lock all the menu items that need to be protected, that is, after each `title` line, a `lock` is needed, otherwise, the menu item is not protected and the user can execute it.

Please refer to the official manual of GNU GRUB legacy. What I said may not be accurate. Please refer to the official manual of GNU GRUB legacy.

[ Last edited by 不点 on 2008-8-10 at 10:00 AM ]
Floor3 kelvinso Posted 2008-08-10 10:43
初级用户 Posts 16 Credits 42
Thank you, the second-floor owner. I will try the settings you mentioned later.
Floor4 zw2312914 Posted 2008-08-10 15:29
初级用户 Posts 16 Credits 39
Originally posted by kelvinso at 2008-8-10 10:43 AM:
Thanks to the second-floor landlord

Hehe, the second-floor landlord.
The brother above still doesn't know that this second-floor landlord is currently the main author of grub4dos
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023