Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2000 03:09:48 -0800
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        "Ing. Guillermo R. Martinez Hernandez" <gmo@www.comunica.net.mx>
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>
In-Reply-To: <003301c0551f$f0c89c00$972e22c8@Lumac>; from gmo@www.comunica.net.mx on Thu, Nov 23, 2000 at 01:35:22AM -0600
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001123030948.P12190>