I'll assume grub as that is the usual default boot loader:<br><br>Get a md5 hash of the password you would like. One way to get it is to ask grub on its command line to give it to you:<br><br>grub> md5crypt<br><br>
Not that useful unless you write it down from here.<br><br>Or from the linux command line (as root on NON-Ubuntu systems, or as regular user on Ubuntu):<br><br>$ grub-md5-crypt<br><br>Which you can redirect to wherever you need to make it easy for you to put into the configuration file (usually /boot/grub/menu.lst)<br>
<br>For accessing grub command line, editing options, and any entry protected by keyword "lock" (in the boot entry) specify the following line BEFORE any and all TITLE lines:<br><br>password --md5 MD%ENCRYPTEDLINE <br>
<br>If you wish to have a specific password for an entry, outside of the above, put a similar line with a different md5 hash IN a boot entry (after a TITLE line).<br><br>Brian<br><br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 3:37 PM, Thompson Freeman <span dir="ltr"><<a href="mailto:tfreeman@intel.digichem.net">tfreeman@intel.digichem.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On 07/31/2009 02:22:05 PM, john anderson wrote:<br>
> Awhile back I installed Ubuntu as a dual boot on a windows<br>
> box. I ran<br>
> into an issue where the 'restore partition' for windows<br>
> showed up in the<br>
> boot loader selections as a boot choice. The problem is<br>
> that this makes<br>
> it a little too easy to wipe and reset the the windows<br>
> partition.<br>
><br>
> Now, admittedly its the windows partition we are talking<br>
> about, but I<br>
> would like to avoid this as a potential problem when I<br>
> talk people into<br>
> trying Linux.<br>
><br>
> I am planning on installing Ubuntu 9.04 on my niece's<br>
> computer but I am<br>
> afraid that a poor keystroke by her or her little brother<br>
> could cause<br>
> havoc. I figure I could maybe comment out that line in the<br>
> grub file.<br>
> Would this solve the issue and how would you then run the<br>
> restore<br>
> partition when you actually wanted to. (Or rather how<br>
> would I explain<br>
> this over the phone.)<br>
<br>
</div></div>Before taking this at face value, check with the<br>
documentation first. However, if memory serves, you can set<br>
a password requirement for any line in the boot menu.<br>
<br>
Of course, since I've never done this, please don't ask<br>
_how_. In fact, if my memory proves to be correct, would<br>
you be so kind as to document it to the list please??<br>
Locking up the restore partition and the single user boot<br>
option strikes me as a "good idea"...<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</div></div></blockquote></div><br>