Authentication token is no longer valid; new one required You (oracle) are not allowed to access to (crontab) because of pam configuration.

-bash-4.1$ crontab -e

Authentication token is no longer valid; new one required
You (oracle) are not allowed to access to (crontab) because of pam configuration.
-bash-4.1$ exit
logout
[root@db ~]# chage -l oracle
Last password change : Apr 30, 2020
Password expires : Jul 29, 2020
Password inactive : never
Account expires : never
Minimum number of days between password change : 90
Maximum number of days between password change : 90
Number of days of warning before password expires : 7
[root@db ~]# chage -M 99999 oracle    //设置oracle密码永不过期
[root@db ~]# chage -l oracle
Last password change : Apr 30, 2020
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 90
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@db ~]#
[root@db ~]#
[root@db ~]# su - oracle
-bash-4.1$ crontab -e    //恢复正常
no crontab for oracle - using an empty one
  

原文地址:https://www.cnblogs.com/leisurelyRD/p/13901200.html