grub:password_protect_grub_bootloader
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
grub:password_protect_grub_bootloader [2016/07/09 22:22] – created peter | grub:password_protect_grub_bootloader [2019/11/29 16:12] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Grub - Password Protect Grub Bootloader ====== | ||
- | |||
- | |||
- | 1. Log into your box as root. | ||
- | 2. Open up a shell. | ||
- | 3. At command prompt, become superuser, then type grub: | ||
- | |||
- | <code bash> | ||
- | sudo -i | ||
- | Password: | ||
- | grub | ||
- | </ | ||
- | |||
- | At the " | ||
- | |||
- | <code grub> | ||
- | grub> md5crypt | ||
- | </ | ||
- | |||
- | Enter a password at the Password: prompt, preferably something other than root password: | ||
- | |||
- | <code grub> | ||
- | Password: ***** | ||
- | </ | ||
- | |||
- | It will then give you the password encrypted: | ||
- | |||
- | < | ||
- | Encrypted: $1$Rdv455345ga345GvIRgXWxcF1Vjb7tZ// | ||
- | </ | ||
- | |||
- | Copy the encrypted password into the clipboard. | ||
- | Open up a new shell. | ||
- | At command prompt, become superuser, then type vi / | ||
- | |||
- | <code bash> | ||
- | sudo -i | ||
- | Password: | ||
- | vi / | ||
- | </ | ||
- | |||
- | After you see title SUSE Linux 10.0 on the next line type lock. On the following line type password md5 [the encrypted password you copied from previous shell]: | ||
- | |||
- | <file bash / | ||
- | ### | ||
- | title SUSE Linux 10.0 | ||
- | lock | ||
- | password md5 $1$Rdv455345ga345GvIRgXWxcF1Vjb7tZ// | ||
- | root (hd0,1) | ||
- | | ||
- | resume=/ | ||
- | | ||
- | </ | ||
- | |||
- | **NOTE**: You may do the above steps for each grub boot item. | ||
grub/password_protect_grub_bootloader.1468102967.txt.gz · Last modified: 2020/07/15 09:30 (external edit)