From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 14 13:55:25 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 C29B716A41C for ; Thu, 14 Jul 2005 13:55:25 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E53C43D45 for ; Thu, 14 Jul 2005 13:55:25 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.13.4/8.13.4) with ESMTP id j6EDtG7F036019; Thu, 14 Jul 2005 09:55:16 -0400 (EDT) Received: from localhost (essenz@localhost) by beck.quonix.net (8.13.4/8.13.4/Submit) with ESMTP id j6EDtGSV036016; Thu, 14 Jul 2005 09:55:16 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Thu, 14 Jul 2005 09:55:16 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: Vyacheslav Sotnikov In-Reply-To: <42D63B7F.8010803@rambler.ru> Message-ID: <20050714095217.Q35893@beck.quonix.net> References: <42D58447.9090600@chamkila.org> <19556.169.203.127.194.1121291465.squirrel@169.203.127.194> <3447e5c6e159524801b5814e10badc8f@essenz.com> <42D63B7F.8010803@rambler.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-SpamAssassin-3.0.3-Score: -1.32/5.8 ALL_TRUSTED,BODY_8BITS X-MimeDefang-2.51: beck.quonix.net X-Scanned-By: MIMEDefang 2.51 on 146.145.66.90 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: Thu, 14 Jul 2005 13:55:25 -0000 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. -john On Thu, 14 Jul 2005, Vyacheslav Sotnikov wrote: > John Von Essen =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > boot single user... > > > > mount -u / > > mount -a > > > > Then use vipw or passwd to clear out or change root password. If you > > shutdown the system un-cleanly, you may have to do an fsck / as > > fragmentation will prevent the filesystem from being mounted > > read-write-able. > > > > -john > > > but what to do if i have "console=09insecure" in /etc/ttys? > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >