On Sat, Jan 26, 2002 at 12:36:01AM +0100, Pieter De Troyer wrote:
> Hi,
> 
> After letting it catch some dust in the past months I dug up an old
> workstation that wasn't completely configured yet.
> 
> Problem: don't remember the root password. Only the password from the
> only other user account on the machine. Booting in single user mode
> prompted me for the root password (or ctrl+d) for normal boot.
> 
> what can i do?
> 

Reboot, and at LILO, or whatever, append INIT=/bin/bash Then once you
get the bash prompt, you will be root. You need to do the following:
mount -o rw,remount -t type /dev/hdXX /
mount -t proc proc /proc
mount /usr
passwd
umount /usr
mount -t ro,remount -t type /dev/hdXX /
reboot

That should work, just be sure of your / fs type and the partition
before you do this.

Matthew

-- 

Matthew Sackman
Nottingham
England

Reply via email to