Compatible Support Forums: grub password

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

grub password

#1 User is offline   jarves 

  • member
  • Group: Members
  • Posts: 154
  • Joined: 23-December 03

Posted 03 February 2005 - 12:41 PM

how do i put a password on grub after i completed installing linux??
if i have a dualboot system a linux and windows and i place a password on grub, if the user cannot provide the right password does it mean that he cannot use even the windows os???
0

#2 User is offline   martouf 

  • enthusiast
  • Group: Members
  • Posts: 338
  • Joined: 09-July 04

Posted 03 February 2005 - 09:53 PM

Applicable extracts from the GRUB Manual:

Quote:
password

password [--md5] passwd [new-config-file]
If used in the first section of a menu file, disable all interactive editing control (menu entry editor and command-line) and entries protected by the command lock. If the password passwd is entered, it loads the new-config-file as a new config file and restarts the GRUB Stage 2, if new-config-file is specified. Otherwise, GRUB will just unlock the privileged instructions. You can also use this command in the script section, in which case it will ask for the password, before continuing.
The option --md5 tells GRUB that passwd is encrypted with md5crypt (see md5crypt).


Quote:
lock
Prevent normal users from executing arbitrary menu entries. You must use the command password if you really want this command to be useful (see password).

This command is used in a menu, as shown in this example:

[tt] title This entry is too dangerous to be executed by normal users
lock
root (hd0,a)
kernel /no-security-os[/tt]


In other words:
If you set a password, then all the boot entries are fixed "as is" and aren't
editable unless you supply the password.
In addition to the above, any entry marked with "lock" can't be booted unless
you supply the password.

crystal clear? got it?

cheers!


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users