Chicken and egg question: passwd and cronjob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 root
will it work?

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.

Pardon me if it's silly.
I know it's bad to change password from script, but the root acc is
not used at all and has been disabled from logon remotely.
I just need it to keep various cronjob to keep running. Any other
advise are welcome.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux