From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 15 10:09:32 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 9877316A41C for ; Fri, 15 Jul 2005 10:09:32 +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 168DB43D48 for ; Fri, 15 Jul 2005 10:09:32 +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 0480487C8 for ; Fri, 15 Jul 2005 13:09:31 +0300 (EEST) Received: (nullmailer pid 53843 invoked by uid 1004); Fri, 15 Jul 2005 10:09:39 -0000 Date: Fri, 15 Jul 2005 13:09:39 +0300 From: Vasil Dimov To: hackers@freebsd.org Message-ID: <20050715100939.GA53820@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> <20050715094148.GA19992@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <20050715094148.GA19992@straylight.m.ringlet.net> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i Cc: 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 10:09:32 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 15, 2005 at 12:41:48PM +0300, Peter Pentchev wrote: > 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= you > > > have to manually mount the / filesystem and edit passwd (just clear o= ut > > > 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 > >=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. >=20 > Much easier to just chroot(8) into the mounted filesystem and use > the 'passwd root' command, as others have already suggested - after booti= ng > from the fixit CD, of course. >=20 Yes, ofcourse. I was just mentioning that "Simply editing /etc/passwd won't do the work". --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFC14tjFw6SP/bBpCARAtyBAJ9VKISG8VF6TMTaDjaaVCYEgmU1hQCgnWZN ErRbtyW/nWYY+Xz2sx6muQM= =NGBG -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--