Subject: Re: Welcome to netbsd-help
To: Mohsin <mohsin@interonic.com>
From: None <collver@linuxfreemail.com>
List: netbsd-help
Date: 07/28/2001 06:36:43
> I have a quick and short question to ask. If some how someone gets access 
> to your root and changes all the passwords for all the users how do you 
> recover the root password. I am really stressed and I will appreciate any 
> solutions to this problems.

Physically sit in front of the machine.  The i386 bootloader will let you
interrupt it by pressing space.  Press space then at the bootloader prompt
type "boot -s" to go into single-user mode.  Press Enter to use /bin/sh as
your shell.

mount -o rw /
mount /usr
passwd root
passwd user1
passwd user2
umount /usr
mount -o ro /
reboot

How did someone else get root access?

Ben
-- 
The honest man is the one who realizes that he cannot
consume more, in his lifetime, than he produces.