5

I have a crontab job running daily as a non-root user job. Unfortunately it did stop working with the following message (in /var/log/syslog):

CRON[29256]: Authentication token is no longer valid; new one required

I have not change a password for the user running this job, neither is password expired. What is causing this issue and how to fix it? - preferable without a need to change user's password every x days.

Ubuntu 14.04.1 LTS

BroiSatse
  • 151

2 Answers2

1

I have found a few articles about this, all of them relate to password changes.

You have said that you have not changed the password, and that the password is not expired. My Recommendation is to change the password anyway.

Whether or not you want to have to change the password every X day's, this will likely solve your problem. Once you confirm that this DID solve your problem, you can then start troubleshooting a means of making it not an issue in the future.

Gravy
  • 788
0

This issue occurs when the password is already expired/aged. You can check the users password expiry info using the following command

chage -l <username>

If the output says "password must be changed" you need change the password. After changing password you should be able to run cron jobs with that user account.

Arul Selvan
  • 1,488