天天看點

更新vcsa6.7時報錯裝置根密碼過期

最近在更新vcsa6.7版本時,提示報錯,其實報錯内容就是裝置根密碼過期了,導緻無法更新

Appliance (OS) root password expired.

Please change appliance (OS) root password before attempting an update

解決辦法:

打開VCSA控制台,選擇Troubleshooting Mode Options,開啟ssh、shell

注意此處兩項都回車選擇一下,看到Disable就表示目前已是開啟狀态,無需儲存,即時生效

然後通過xshell等相關工具連接配接VCSA,預設端口22

登入後會看到修改密碼的提示,先輸入老的密碼,再輸入新的密碼,注意新的密碼不能和老的密碼相似度太高,也不能太簡單,否則修改不了,最後執行chage指令,将root密碼設定永不過期。

You are required to change your password immediately (root enforced)

Changing password for root.

(current) UNIX password:

New password:

Retype new password:

Password:

Connected to service

* List APIs: "help api list"
* List Plugins: "help pi list"
* Launch BASH: "shell"
           

Command> shell

root@photon-machine [ ~ ]# chage -I -1 -m 0 -M 99999 -E -1 root

設定完成後,請記得關閉Shell、SSH

此時再執行更新操作就不會報錯了。