From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 15 09:41:55 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D35D16A41C for ; Fri, 15 Jul 2005 09:41:55 +0000 (GMT) (envelope-from roam@ringlet.net) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id F170943D45 for ; Fri, 15 Jul 2005 09:41:52 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 7152 invoked from network); 15 Jul 2005 09:41:47 -0000 Received: from unknown (HELO straylight.ringlet.net) (213.16.36.102) by gandalf.online.bg with SMTP; 15 Jul 2005 09:41:47 -0000 Received: (qmail 31619 invoked by uid 1000); 15 Jul 2005 12:41:48 +0300 Date: Fri, 15 Jul 2005 12:41:48 +0300 From: Peter Pentchev To: Vasil Dimov Message-ID: <20050715094148.GA19992@straylight.m.ringlet.net> Mail-Followup-To: Vasil Dimov , hackers@freebsd.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq" Content-Disposition: inline In-Reply-To: <20050715064435.GA83687@sinanica.bg.datamax> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org Subject: Re: How to reset root passwd FreeBSdD4.7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 09:41:55 -0000 --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--