Cheug's Blog

当前位置:网站首页 / Linux / 正文

Linux用户计划任务无法执行

2025-08-06 / Linux / 184 次围观 / 0 次吐槽 /

1.报错:

            Authentication token is no longer valid; new one required

            You (yunqiao) are not allowed to access to (crontab) because of pam configuration.


原因:这说明系统PAM检测到用户的密码认证信息过期,解决方式是清理密码过期状态。


执行以下命令,查看用户状态:

chage -l user

如果你看到如下提示:

Password expires : <某个日期>
Password inactive : <某个日期>
Account expires : <某个日期>

或者有 Password expired 的提示,说明密码已经过期了。你可以使用命令重新设置密码,也可以解除密码过期限制。

passwd user 

chage -M 99999 user


Powered By Cheug's Blog

Copyright Cheug Rights Reserved.