Y
YolsuzTR
Guest
I forgot the password to FreeBSD. How do I fix that?
mount -ruw /
, then remount all filesystems mount -a
and type passwd
, it will then prompt you for a new one.# mount -u /
# mount -a
# passwd
(enter the new root password here when prompted)
# exit
exit
command.zspider said:Reboot into single user mode, 5 on the loader menu.
It will drop you into a root shell. Then remount root as read writemount -ruw /
, then remount all filesystemsmount -a
and typepasswd
, it will then prompt you for a new one.
This is probably available in the handbook though, so in the future you should look there first.
fsck -y
mount -ruw /
mount -a
passwd root
YolsuzTR said:Was ok
Code:fsck -y mount -ruw / mount -a passwd root
passwd
command is redundant. It assumes the username is the one of the account presently logged in, unless otherwise specified.