Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 20:09:56 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Patrick O'Reilly" <bsd@perimeter.co.za>
Cc:        Martins Struka <martinss2000@inbox.lv>, questions@FreeBSD.ORG
Subject:   Re: Root problem & Passwords
Message-ID:  <20020409170956.GE67632@hades.hell.gr>
In-Reply-To: <01a001c1dfa9$9b3d08a0$b50d030a@PATRICK>
References:  <002101c1dfa2$e2ea81c0$0501a8c0@Bastion> <01a001c1dfa9$9b3d08a0$b50d030a@PATRICK>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-04-09 11:33, Patrick O'Reilly wrote:
> To reset the root password:
>
> 1) Restart the computer (Ctrl-Alt-Del or Power On).
> 2) When you see the message counting down from 10 seconds, press
>    Space Bar.
> 3) when you see the "ok" prompt, type "boot -s" - this provides root
>    access in single user mode.
> 4) At the shell prompt type:
>   # fsck -p                     (File System Check)
>   # mount -u /                  (mount / partition read/write)
>   # mount -a -t ufs             (mount all ufs partitions - /usr ...)
>   # passwd                      (supply root passwd twice)

Just because I've been bitten by this a few times.  Before shutting
down, run a few "sync" commands, and wait until the disks spin down.
I've changed my rc.conf a couple of times, and rebooted too fast only
to find that the changes were not there :-)

>   # shutdown -r now             (reboot to multi-user mode again)
> 5) Once you are able to log in as root again, you can use the passwd
> command to reset the other user's password.

Giorgos Keramidas                       FreeBSD Documentation Project
keramida@{freebsd.org,ceid.upatras.gr}  http://www.FreeBSD.org/docproj/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020409170956.GE67632>