From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 15 06:44:29 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 9357B16A41C for ; Fri, 15 Jul 2005 06:44:29 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EAF143D45 for ; Fri, 15 Jul 2005 06:44:28 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1]) by jengal.datamax.bg (Postfix) with QMQP id 4CB1487C8; Fri, 15 Jul 2005 09:44:27 +0300 (EEST) Received: (nullmailer pid 7842 invoked by uid 1004); Fri, 15 Jul 2005 06:44:35 -0000 Date: Fri, 15 Jul 2005 09:44:35 +0300 From: Vasil Dimov To: John Von Essen Message-ID: <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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <20050714095217.Q35893@beck.quonix.net> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org, Vyacheslav Sotnikov Subject: Re: How to reset root passwd FreeBSdD4.7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg 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 06:44:29 -0000 --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--