From owner-freebsd-questions Thu Nov 23 3: 9:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 490E837B4C5 for ; Thu, 23 Nov 2000 03:09:52 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Thu, 23 Nov 2000 03:08:20 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eANB9nS66286; Thu, 23 Nov 2000 03:09:49 -0800 (PST) (envelope-from cjc) Date: Thu, 23 Nov 2000 03:09:48 -0800 From: "Crist J . Clark" To: "Ing. Guillermo R. Martinez Hernandez" Cc: freebsd-questions@freebsd.org Subject: Re: help!!!! i forget passwd root and i have ttys close Message-ID: <20001123030948.P12190@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <000801c05506$83318800$9a2e22c8@Lumac> <20001122223445.M12190@149.211.6.64.reflexcom.com> <001a01c0551c$c09e02c0$972e22c8@Lumac> <20001122224224.N12190@149.211.6.64.reflexcom.com> <003301c0551f$f0c89c00$972e22c8@Lumac> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <003301c0551f$f0c89c00$972e22c8@Lumac>; from gmo@www.comunica.net.mx on Thu, Nov 23, 2000 at 01:35:22AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 23, 2000 at 01:35:22AM -0600, Ing. Guillermo R. Martinez Hernandez wrote: > > I did, but can not change the passwd, no show next step for change passswd, > only show the window in where you choice this option and dont change to next > windows ? I am not sure if I understand you, but I guess this might not work. > you have other idea ? Boot off your alternate media again, and get into sysinstall. This time, choose the 'Fixit' option. If you have a floppy, great. If you don't, this could be fun. Choose the emergency shell option. The first thing you want to do is mount the root partition on your hard drive. Do you know the device name? For example, let's say its da0s1a. The following should clear the root password, # mount /dev/ad0s1a /mnt # mount /dev/ad0s1e /mnt/usr # vipw -d /mnt/etc At this point you should get a session in an editor, probably ed(1). If you are not familiar with ed(1), these are the commands to type to clear the root password: 1 s/root:[^:]*// w q Some of those commands will return output, but that is what you will type. It's been a while since I had to boot a system from fixit floppies for repairs. I hope this helps. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message