User Tools

Site Tools


grub:password_protect_grub_bootloader

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
grub:password_protect_grub_bootloader [2016/07/09 22:25] petergrub:password_protect_grub_bootloader [2019/11/29 16:12] (current) – removed peter
Line 1: Line 1:
-====== Grub - Password Protect Grub Bootloader ====== 
- 
- 
-As root type grub: 
- 
-<code bash> 
-sudo grub 
-</code> 
- 
-At the "grub>" prompt type md5crypt: 
- 
-<code grub> 
-grub> md5crypt 
-</code> 
- 
-Enter a password at the Password: prompt, preferably something other than root password: 
- 
-<code grub> 
-Password: ***** 
-</code> 
- 
-It will then give you the password encrypted: 
- 
-<code> 
-Encrypted: $1$Rdv455345ga345GvIRgXWxcF1Vjb7tZ// 
-</code> 
- 
-Copy the encrypted password into the clipboard. 
- 
-Edit **/boot/grub/menu.lst**: 
- 
-<code bash> 
-vi /boot/grub/menu.lst 
-</code> 
- 
-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 /boot/grub/menu.lst> 
-###Don't change this comment YaST2 identifier: Original name: linux### 
-title SUSE Linux 10.0 
-lock 
-password md5 $1$Rdv455345ga345GvIRgXWxcF1Vjb7tZ// 
-root (hd0,1) 
-     kernel /boot/vmlinuz root=/dev/hda2 vga=0x31a selinux=0 
-resume=/dev/hda1  splash=silent showopts 
-     initrd /boot/initrd 
-</file> 
- 
-**NOTE**: You may do the above steps for each grub boot item. 
  
grub/password_protect_grub_bootloader.1468103142.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki