Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2005 21:34:30 -0400
From:      John Von Essen <john@essenz.com>
To:        hackers@freebsd.org
Subject:   Re: How to reset root passwd FreeBSdD4.7
Message-ID:  <3447e5c6e159524801b5814e10badc8f@essenz.com>
In-Reply-To: <19556.169.203.127.194.1121291465.squirrel@169.203.127.194>
References:  <42D58447.9090600@chamkila.org> <19556.169.203.127.194.1121291465.squirrel@169.203.127.194>

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

On Jul 13, 2005, at 5:51 PM, estover@nativenerds.com wrote:

>> Hi all,
>>
>> Is there a way to reset the root passwd without reinstalling FreeBSD 
>> 4.7.
>>
>> Thanks in advance
>>
>> Aman
>>
>> _______________________________________________
>> 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"
>>
> boot into single user mode
> mount drives
> set password for root.
> reboot
>
> _______________________________________________
> 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?3447e5c6e159524801b5814e10badc8f>