本文共 918 字,大约阅读时间需要 3 分钟。
重新啓動FreeBSD 進入單用戶更改密碼
FreeBSD 4.x 或之前的版本 在系統起動顯示以下信息時按
spacebarHit [Enter] to boot immediately, or any other key for command prompt. Booting [kernel] in 10 seconds...接着在顯示以下信息時輸入 boot -s Type '?' for a list of commands, or 'help' for more detailed help. ok 按 Enter 後系統會運行至顯示以下信息
Enter full pathname of shell or RETURN for /bin/sh: 再按 Enter
進入單用戶, 顯示
#掛載檔案系統, 輸入
# fsck -p \\文件檔案檢查
# mount -u / \\掛載 /
# mount -t ufs -a \\掛載所有文件檔案
更改密碼
# passwd \\更改密碼
New password:_Retype new password:_passwd: updating the database...passwd: done# exit \\離開單用戶進入多用戶正常模式 FreeBSD 5 或都之後版本. 在系統起動顯示以下畫面時按
spacebar 選擇 4 按 Enter 進入
單用戶模式 系統會運行至顯示以下信息 Enter full pathname of shell or RETURN for /bin/sh: 再按 Enter 進入單用戶, 顯示 # 掛載檔案系統, 輸入 # fsck -p \\文件檔案檢查 # mount -u / \\掛載 / # mount -t ufs -a \\掛載所有文件檔案 更改密碼 # passwd \\ 更改密碼 New password: _ Retype new password: _ passwd: updating the database... passwd: done # exit \\離開單用戶進入多用戶正常模式 转载地址:http://bnmfm.baihongyu.com/