From owner-freebsd-questions@FreeBSD.ORG Sat Oct 25 14:55:01 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 7DEBA106566B for ; Sat, 25 Oct 2008 14:55:01 +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 01C668FC0C for ; Sat, 25 Oct 2008 14:55:00 +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 m9PEsniQ037381; Sat, 25 Oct 2008 15:54:50 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk m9PEsniQ037381 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1224946491; bh=QFRRNuHyLNhmBi MRqay2NNU2CqQieUY6RawTMphVZmI=; 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<49033331.1040906@infracaninophile.co.uk>|Date:=20Sat,=2 025=20Oct=202008=2015:54:41=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>|In-Reply-To:=20<3378.84.18.11.147.1224942988.squirrel@mai l.dsa.es>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/si gned=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pg p-signature"=3B=0D=0A=20boundary=3D"------------enigCAB84A5666940FD C34B76A55"; b=MuVL2kzbv0gaeBkcix4bbjBV6zvR8pf5gnAatfk7GT+NYzFS5LhIn aauwqNS9AMCOe1oxkswZ55rHx85QE642wkmT78ZwJdVYeFN6VWwebao9SGYz4d3/Sux oZ9xWGt3VyMx5gfgHwh9GVnQKPiNzbvT4ZkX8YaERscObCe0mlA= Message-ID: <49033331.1040906@infracaninophile.co.uk> Date: Sat, 25 Oct 2008 15:54:41 +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> In-Reply-To: <3378.84.18.11.147.1224942988.squirrel@mail.dsa.es> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigCAB84A5666940FDC34B76A55" 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:54:51 +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:55:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCAB84A5666940FDC34B76A55 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable DSA - JCR wrote: > Hi all >=20 > I have lost the neuron where I stored the root password of an installat= ion ;D >=20 > I have seen a "How to" about this but I have a problem, i set the conso= le > to insecure, so when I try to do the step of the "how to" i get a messa= ge > to input the root password or Ctrl-D to enter in multiuser mode. >=20 > Is there a way to restore/modify it, or not? >=20 > Some ideas? 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 to= =20 your normal system and then log in as root (no password) and=20 /immediately/ set another root password. This time, don't forget your root password. If you struggle to memorise it, then *write it down* on its own, on a blank sheet of paper. Don't=20 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 trying= =20 to break in do we? Seal that paper in an envelope and keep it in a safe = place. But not so safe that you forget where you put it... Cheers, 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 --------------enigCAB84A5666940FDC34B76A55 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 iEYEAREIAAYFAkkDMzkACgkQ8Mjk52CukIzjSgCfWaBaUT9XHiufDkVzPpiBgKxr t3kAn10BH+rMTTrh8C7y2q9X2qUnGG/e =Sd/K -----END PGP SIGNATURE----- --------------enigCAB84A5666940FDC34B76A55--