From owner-freebsd-questions@FreeBSD.ORG Sat Oct 25 14:59:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25844106566C for ; Sat, 25 Oct 2008 14:59:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9A5C48FC08 for ; Sat, 25 Oct 2008 14:59:39 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id m9PExXxI037604; Sat, 25 Oct 2008 15:59:34 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk m9PExXxI037604 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1224946774; bh=Z6NXdYZeXQN7v5 SchZ7H5rvV76uxTXfGRwt4kUMdVfI=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<49033455.4090609@infracaninophile.co.uk>|Date:=20Sat,=2 025=20Oct=202008=2015:59:33=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.17=20(X11/20080929)|MIME-Version:=201 .0|To:=20DSA=20-=20JCR=20|CC:=20freebsd-questions@fr eebsd.org|Subject:=20Re:=20How=20to=20restore=20a=20lost=20root=20p assword...|References:=20<3378.84.18.11.147.1224942988.squirrel@mai l.dsa.es>=20<49033331.1040906@infracaninophile.co.uk>|In-Reply-To:= 20<49033331.1040906@infracaninophile.co.uk>|X-Enigmail-Version:=200 .95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B= 0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary= 3D"------------enigFB89D28F82BE01B5D932EE26"; b=oUWR+LLYFMnIVvyRSyQ LUkbMWwuTMoMpZXXu1UK6DzO6ZebNP8c6vhFaanGXLFM5zkPuJVWBziB8e4AvD+qVHv 7k/J9o0Da1pBATmXlXasJxO37dPP+7x3C4F/FISUuGToxojfpQ1efW9P0Mc2WLAnZ4p U3gACh0+YSJKvC4wic= Message-ID: <49033455.4090609@infracaninophile.co.uk> Date: Sat, 25 Oct 2008 15:59:33 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: DSA - JCR References: <3378.84.18.11.147.1224942988.squirrel@mail.dsa.es> <49033331.1040906@infracaninophile.co.uk> In-Reply-To: <49033331.1040906@infracaninophile.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFB89D28F82BE01B5D932EE26" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 25 Oct 2008 15:59:34 +0100 (BST) X-Virus-Scanned: ClamAV 0.94/8490/Sat Oct 25 04:28:16 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: How to restore a lost root password... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2008 14:59:40 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFB89D28F82BE01B5D932EE26 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Matthew Seaman wrote: > DSA - JCR wrote: >> Hi all >> >> I have lost the neuron where I stored the root password of an=20 >> installation ;D >> >> I have seen a "How to" about this but I have a problem, i set the cons= ole >> to insecure, so when I try to do the step of the "how to" i get a mess= age >> to input the root password or Ctrl-D to enter in multiuser mode. >> >> Is there a way to restore/modify it, or not? >> >> Some ideas? >=20 > You can try booting from installation media into 'fixit' mode or live > filesystem. Once there, you can mount your HDD read-write; edit=20 > /etc/master.password to remove the crypted password string from the > line for the root account; run 'cap_mkdb ./master.passwd'; reboot back Ooops. Make that: 'pwd_mkdb ./master.passwd' =20 > to your normal system and then log in as root (no password) and=20 > /immediately/ set another root password. >=20 > This time, don't forget your root password. If you struggle to memoris= e > it, then *write it down* on its own, on a blank sheet of paper. Don't = > add any really obvious text like "this is the root password for my=20 > server" -- after all, we don't want to make it too easy for anyone=20 > trying to break in do we? Seal that paper in an envelope and keep it i= n=20 > a safe place. But not so safe that you forget where you put it... >=20 > Cheers, >=20 > Matthew >=20 Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigFB89D28F82BE01B5D932EE26 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkkDNFUACgkQ8Mjk52CukIzteQCfa0j8wu6fF0kPWf4akX9S2s4b DXsAnRAd168ZDfwjuFtKa3PV0YtN1iGl =joxd -----END PGP SIGNATURE----- --------------enigFB89D28F82BE01B5D932EE26--