Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2004 10:48:28 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Gregory Edigarov <greg@profi.kharkov.ua>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: any way to recover root password on 5.2
Message-ID:  <20040506094828.GE23826@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040506092818.GA10429@profi.kharkov.ua>
References:  <20040506092818.GA10429@profi.kharkov.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--0QFb0wBpEddLcDHQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, May 06, 2004 at 12:28:18PM +0300, Gregory Edigarov wrote:

> I forgot root pasword on my just installed server.
> I've tryed to recover it by going to single user, then doing=20
> mount -a; passwd root, but no success. It says "entropy device
> blocking. Dance fandago on keyboard to unlock".
> what can I do?

Like it says, type a lot of gibberish into the keyboard.  One of the
places the system can derive randomness from is the time interval
between key presses.  If you're worried about accidentally typing a
command and hosing your system, then you can start by doing:

    # cat >/dev/null

type arbitrary stuff for a few minutes, and then hit Ctrl-D.

Then try re-running passwd(1).

Alternatively you can edit /etc/master.passwd using vipw(1) and simply
delete the crypttext of the password for the root account.  Then boot
back into multi user, and immediately log in as root and set a new
password.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--0QFb0wBpEddLcDHQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAmgnsdtESqEQa7a0RAndAAKCb1vfvlVjfB5m1d03etRPggK/5NwCeKxzB
RKwJbi4sRKFz+o0zgAmL+EQ=
=Xjed
-----END PGP SIGNATURE-----

--0QFb0wBpEddLcDHQ--



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