Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2005 09:55:16 -0400 (EDT)
From:      John Von Essen <john@essenz.com>
To:        Vyacheslav Sotnikov <bsdforfree@rambler.ru>
Cc:        hackers@freebsd.org
Subject:   Re: How to reset root passwd FreeBSdD4.7
Message-ID:  <20050714095217.Q35893@beck.quonix.net>
In-Reply-To: <42D63B7F.8010803@rambler.ru>
References:  <42D58447.9090600@chamkila.org> <19556.169.203.127.194.1121291465.squirrel@169.203.127.194> <3447e5c6e159524801b5814e10badc8f@essenz.com> <42D63B7F.8010803@rambler.ru>

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



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