FreeBSD

FreeBSD忘记密码解决办法

这两天蚊子折腾KVM,给同事分配了台freebsd的虚拟机,结果另外的一个同事也要一台拿来测试,在线克隆了一份之后,用virt-viewer连上去,发现那个同事把系统root用户的密码给改掉了,没办法进单用户重置呗,下面就把方法贴出来

进单用户模式
键入指令:boot -s

# fsck -p
# mount -a
# passwd root(或者其他用户)
# exit

OK,完事,特此记录下来方便今后查询

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.