Crontab -l Command Error “Authentication token is no longer valid”

crontab -l command error “Authentication token is no longer valid; new one required You (root) are not allowed to access to (crontab) because of pam configuration. “

How to Resolve crontab -l command error

This error will come when user password expired and your trying to list cron jobs. How did you verify.?

chage -l root
Last password change : Jan 23, 2017
Password expires : May 03, 2017
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 100
Number of days of warning before password expires : 10

To Resolve this error simple reset your user password using below command

 passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

Now try to list out your cron jobs will work perfectly 

crontab -l
###########
# ARKIT #
###########

# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed

That’s it. Authentication token is no longer valid resolved

Related Articles

Schedule cronjobs using best examples

crontab linux

Thanks for your wonderful Support and Encouragement

ARK

My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

Leave a Reply

Your email address will not be published.