Re: [CentOS] Chicken and egg question: passwd and cronjob

2011-06-24 Thread Michael Gliwinski
On Thursday 23 Jun 2011 08:54:21 Fajar Priyanto wrote: > > 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 whe

Re: [CentOS] Chicken and egg question: passwd and cronjob

2011-06-23 Thread Fajar Priyanto
On Thu, Jun 23, 2011 at 3:44 PM, Michael Gliwinski 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 g

Re: [CentOS] Chicken and egg question: passwd and cronjob

2011-06-23 Thread Michael Gliwinski
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 av

Re: [CentOS] Chicken and egg question: passwd and cronjob

2011-06-22 Thread KevinO
On 06/22/2011 11:46 PM, Fajar Priyanto wrote: > I mean at second 1 on the 90th day, which will run first? > - The cronjob to renew the password > - Or the password expiration, thus preventing the cronjob from running. > just setup the password renewing job to run one minute earlier or don't expi

[CentOS] Chicken and egg question: passwd and cronjob

2011-06-22 Thread Fajar Priyanto
Hi all, Let's say I activate password expiration for every account (including root) for every 90 days. I understand that cronjob for root will fail when the password expires. The question is, if I setup a cronjob every 90 days to renew the root password like: echo diFficulT123 | passwd --stdin roo