Security Basics mailing list archives

Re: Resetting the root password


From: Mihai Amarandei <mihai () xmcopartners com>
Date: Mon, 06 Jun 2005 17:41:59 +0200

lilo: linux init=/bin/bash
.....
booting
......

I remember that with these the system was mounted read-only, so you may be forced to do this:
bash# mount /dev/hda1 / -o remount -o rw
where hda1 is your / partition(replace with whatever suits you)

after that, a simple passwd command allows you to change your root password
bash# passwd

Rgrds
Mihai


Current thread: