[EMAIL PROTECTED] wrote:
>
> On Sun, Oct 10, 1999 at 10:45:56PM -0400, David Tiefenbrunn wrote:
> > Hi, all, I bought a used hard drive today. When I tested it, the first
> > thing that came on the screen was LILO . Just as I was thinking "isn't
> > that something to do with Linux, and cool, now I can see what it is like
> > / mess with it without installing everything, more stuff came up that made
> > it clear. Anyways, after a whole bunch of "starting this and that" type
> > messages, it finally prompted: LOGIN: and wanted a password. Of course,
> > I have no idea what they are.
> OK. what you want to do is....
> 1.reboot the machine
> 2.When LILO appears, hit right-shift.. you should
> get a prompt 'boot:'
> 3.Hit tab, and You'll get a list of names ( maybe only one )
> 4.type the name of the first entry init=/bin/sh
> example:
>
> LILO boot: [tab]
> Linux TestKernel
> LILO boot: Linux init=/bin/sh
>
> 5.you should now see a prompt '#'.
new 6.) type:
# mount -o remount,rw /
new 7.) change root password with the usual passwd program (it will not
ask you for the old one, since you have root priviledges...
new 8.) shutdown -r now
<snip>
new 9.) if all went well, edit /etc/lilo.conf to include the following
lines:
Q> restricted
Q> password=<your lilo-passwd here>
so no-one can do this trick on your computer again. (you can always make
a boot disk somewhere and bott off it, though, so you should probably
remove the floppy :-)
new 10.) run /sbin/lilo
<snip>
Marc
--
Marc Mutz <[EMAIL PROTECTED]> http://marc.mutz.com/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics
PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)