Date: Fri, 15 Jul 2005 13:09:39 +0300 From: Vasil Dimov <vd@datamax.bg> To: hackers@freebsd.org Subject: Re: How to reset root passwd FreeBSdD4.7 Message-ID: <20050715100939.GA53820@sinanica.bg.datamax> In-Reply-To: <20050715094148.GA19992@straylight.m.ringlet.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> <20050715064435.GA83687@sinanica.bg.datamax> <20050715094148.GA19992@straylight.m.ringlet.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 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050715100939.GA53820>