[Gllug] forgot root password on head- and keyboardless machine *blush*

Tushar Joshi tjoshi at lonix.org.uk
Mon Aug 20 11:48:27 UTC 2001


You can make a boot disk that then loads an initrd image, this initrd image
could contain a script that mounts the partition then runs your script etc,
presuming it's not perl.

I have a disk I made that was used to simply load modules like that, but an
initrd image has a file on it, which is simply a script that is run. You
naturally have to include the /bin/sh and other stuff.


Tushar

On Sun, Aug 19, 2001 at 11:43:24PM +0100, Stig Brautaset wrote:
> I have a head- and keyboardless machine running debian potato that I
> used to log into with ssh. Now I have forgotten the password. *blush*
> 
> What I want to do, is either;
> 
> a)  make a bootdisk with a script that automaticly starts running that
>     disables the root password, then halts the machine. I can then log
>     in via ssh and change/enable the password again.
> 
> b)  make a bootdisk that boot the machine and starts a telnet or ssh
>     server so I can log in and mount the disk and disable the password.
> 
> I think a) is preferrable to b). I can probably write the script myself,
> but I need some info on how to assemble a bootdisk that will run this
> script automatically. Any input is appreciated. 
> 
> Regards, 
> 
> Stig (who is very ashamed)
> 
> -- 
> www.brautaset.org
> 
> -- 
> Gllug mailing list  -  Gllug at linux.co.uk
> http://list.ftech.net/mailman/listinfo/gllug

-- 
--------------------------------------------------------
|                 Turtle Networks Ltd.                 |
|  Monarch House, Victoria Road, London W3 6UR         |
|  Tel: (020) 8992 7008     |  Fax: (020) 8992 7017    |
|  www.turtle.net           |  tjoshi at turtle.net       |
--------------------------------------------------------

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list