Tag Archives: “Authentication token is no longer”

Solving the problem of “authentication token is no longer” in crontab

How did “people you might know” find you on social software>>>

Problem: the crond timing task under a certain user (here is the virtual user) is not executed. Check the reason and find that crond does not have the permission to execute

Problem phenomenon: when the crontab view a user (virtual) task is executed, it cannot be viewed normally, indicating that the user authentication authorization is no longer valid, and a new one is needed

# crontab -u virtual -l

Authentication token is no longer valid; new one required
You (virtual) are not allowed to access to (crontab) because of pam configuration.
[ root@gj1 FTPDATA]# crontab -u virtual -e

Authentication token is no longer valid; New one required
you (virtual) are not allowed to access to (crontab) cause of PAM configuration

Use root to reset the virtual user password

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

The crontab command is executed again, the error prompt no longer appears, and the problem is solved

# crontab -u virtual -l
#*/10 17-18 * * * /FTPDATA/ncps_ ftprec/bin/execftp.sh
00 01-05 * * * /FTPDATA/ncps_ ftprec/bin/execftp.sh