RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Set boot password with GRUB boot Linux loader

Sometimes the need arises that one would need to set a password to disallow anyone else boot the system without correct password. This can be easily done when using GRUB as a loader. First boot your linux system. The enter grub's command prompt:

# grub
 GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub>

then type a md5crypt command which will ask for your password and spit out its equivalent in md5 encrypted version:

grub> md5crypt

Password: ****
Encrypted: $1$A9NHZ/$N.6k9riAFMbV/nfsZ2LnD1

Now depends on your Linux distribution locate and edit a grub's config file.

NOTE:GRUB's config file can be located at various places

  • /boot/grub/menu.lst
  • /etc/grub.conf
  • /boot/grub/grub.conf

Add your MD5 encrypted password to a grub's global configuration:

timeout         5
color cyan/blue white/blue
password --md5 $1$A9NHZ/$N.6k9riAFMbV/nfsZ2LnD1

save and reboot.

Share this linux post:

Submit Set boot password with GRUB boot Linux loader in Delicious Submit Set boot password with GRUB boot Linux loader in Digg Submit Set boot password with GRUB boot Linux loader in FaceBook Submit Set boot password with GRUB boot Linux loader in Google Bookmarks Submit Set boot password with GRUB boot Linux loader in Stumbleupon Submit Set boot password with GRUB boot Linux loader in Technorati Submit Set boot password with GRUB boot Linux loader in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download