grep "Authentication token is no longer valid; new one required" /var/log/messages.0.log | head
例如:
grep "Authentication token is no longer valid; new one required" /var/log/messages.0.log | head
2016-11-07T00:20:01.617180+00:00 vcenter /usr/sbin/cron[18972]: Authentication token is no longer valid; new one required 2016-11-07T00:20:01.617183+00:00 vcenter /usr/sbin/cron[18974]: Authentication token is no longer valid; new one required 2016-11-07T00:25:01.619783+00:00 vcenter /usr/sbin/cron[31405]: Authentication token is no longer valid; new one required 2016-11-07T00:30:01.622177+00:00 vcenter /usr/sbin/cron[9978]: Authentication token is no longer valid; new one required 2016-11-07T00:30:01.622180+00:00 vcenter /usr/sbin/cron[9975]: Authentication token is no longer valid; new one required 2016-11-07T00:30:01.622182+00:00 vcenter /usr/sbin/cron[9977]: Authentication token is no longer valid; new one required
运行以下命令以检查 root 密码是否已过期:
chage -l root
例如:
chage -l root
Password change requested. Choose a new password. Old Password: New password:
请根据提示更改 root 密码。
验证是否已更改 root 帐户密码:
chage -l root
例如:
chage -l root
Minimum: 0 Maximum: 365 Warning: 7 Inactive: -1 Last Change: Feb 03, 2017 Password Expires: Feb 03, 2018 Password Inactive: Never Account Expires: Never