On Thu, Jun 23, 2011 at 3:44 PM, Michael Gliwinski Michael.Gliwinski@henderson-group.com wrote:
On Thursday 23 Jun 2011 07:46:01 Fajar Priyanto wrote:
I understand that cronjob for root will fail when the password expires.
AFAIK, account does not need to have a password at all for cron to work.
Apart from that if you're going to automatically reset root's password you may as well just avoid expiring it at all.
In /var/log/cron I see this when the password expires. And cronjob fail to run.
Jun 23 02:50:01 my-srv crond[4424]: CRON (root) ERROR: failed to open PAM security session: Success Jun 23 02:50:01 my-srv crond[4424]: CRON (root) ERROR: cannot set security context Jun 23 03:00:01 my-srv crond[4425]: Authentication token is no longer valid; new one required