From owner-freebsd-questions@FreeBSD.ORG Thu May 6 02:48:35 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29B3516A4CE for ; Thu, 6 May 2004 02:48:35 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB4FA43D48 for ; Thu, 6 May 2004 02:48:33 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i469mSUr064895 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 May 2004 10:48:28 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i469mSQf064894; Thu, 6 May 2004 10:48:28 +0100 (BST) (envelope-from matthew) Date: Thu, 6 May 2004 10:48:28 +0100 From: Matthew Seaman To: Gregory Edigarov Message-ID: <20040506094828.GE23826@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Gregory Edigarov , freebsd-questions@freebsd.org References: <20040506092818.GA10429@profi.kharkov.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0QFb0wBpEddLcDHQ" Content-Disposition: inline In-Reply-To: <20040506092818.GA10429@profi.kharkov.ua> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040504, clamav-milter version 0.70u X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: any way to recover root password on 5.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 09:48:35 -0000 --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--