且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

升级vcsa6.7时报错设备根密码过期

更新时间:2022-04-23 21:29:23

最近在升级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

此时再执行升级操作就不会报错了。