Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2005 12:41:48 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Vasil Dimov <vd@datamax.bg>
Cc:        hackers@freebsd.org
Subject:   Re: How to reset root passwd FreeBSdD4.7
Message-ID:  <20050715094148.GA19992@straylight.m.ringlet.net>
In-Reply-To: <20050715064435.GA83687@sinanica.bg.datamax>
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> <20050715064435.GA83687@sinanica.bg.datamax>

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

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

On Fri, Jul 15, 2005 at 09:44:35AM +0300, Vasil Dimov wrote:
> 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 y=
ou
> > 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 h=
ave
> > to reboot afterwards) since if you have any fragmentation following an
> > unclean shutdown, you will not be able to mount the device.
> >=20
>=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.

Much easier to just chroot(8) into the mounted filesystem and use
the 'passwd root' command, as others have already suggested - after booting
=66rom the fixit CD, of course.

[Cc list snipped, eek]

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@cnsys.bg    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
The rest of this sentence is written in Thailand, on

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFC14Tc7Ri2jRYZRVMRAm4HAJ9zI58mbl0JkTELndzAsgnh/eRRwwCfQrZP
an6y4j4TNvymZ1kGNNmpPAg=
=uRWG
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--



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