Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2005 09:44:35 +0300
From:      Vasil Dimov <vd@datamax.bg>
To:        John Von Essen <john@essenz.com>
Cc:        hackers@freebsd.org, Vyacheslav Sotnikov <bsdforfree@rambler.ru>
Subject:   Re: How to reset root passwd FreeBSdD4.7
Message-ID:  <20050715064435.GA83687@sinanica.bg.datamax>
In-Reply-To: <20050714095217.Q35893@beck.quonix.net>
References:  <42D58447.9090600@chamkila.org> <19556.169.203.127.194.1121291465.squirrel@169.203.127.194> <3447e5c6e159524801b5814e10badc8f@essenz.com> <42D63B7F.8010803@rambler.ru> <20050714095217.Q35893@beck.quonix.net>

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

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

On Thu, Jul 14, 2005 at 09:55:16AM -0400, John Von Essen wrote:
> Boot with 1st CD, goto the Fixit Shell (will need 2nd CD). From there you
> have to manually mount the / filesystem and edit passwd (just clear out
> the passwd, root::). However, do an fsck on the device first (you may have
> to reboot afterwards) since if you have any fragmentation following an
> unclean shutdown, you will not be able to mount the device.
>=20

Simply editing /etc/passwd won't do the work (this is not Linux, eah)
/etc/master.passwd must be edited and then pwd_mkdb /etc/master.passwd
must be run.

--SLDf9lqlvOQaIe6s
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iD8DBQFC11tTFw6SP/bBpCARAj6MAJ4vSmQsrXTm5/gzYhNpy8ZTYjCfrgCeOuBp
3WEWDyhNphH43LVDm1Av+u4=
=vV92
-----END PGP SIGNATURE-----

--SLDf9lqlvOQaIe6s--



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