现象:
auth.log错误:"pam_unix(cron:account): account root has expired (account expired)"
cron.log错误:Aug 17 17:04:01 authoring CRON[2567]: Authentication failure
原因:
root被锁定
解决办法:
passwd -l root
修改/etc/shadow文件的root:!$6$qxobffPS$5EGA6S9eCgIQKHkieIsaTFtN3HxCDBBoG6i3TLC2VS/ZROhjWNa8G4F53xvizo60urAj28sh2IVwmSXFggFmD0:14565:0:99999:7::1:
将最后的1去掉:root:!$6$qxobffPS$5EGA6S9eCgIQKHkieIsaTFtN3HxCDBBoG6i3TLC2VS/ZROhjWNa8G4F53xvizo60urAj28sh2IVwmSXFggFmD0:14565:0:99999:7:::
阅读(1247) | 评论(0) | 转发(0) |