Fajar Priyanto
2011-Jun-23 06:46 UTC
[CentOS] Chicken and egg question: passwd and cronjob
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.
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 expire the root passwd -- KevinO
Michael Gliwinski
2011-Jun-23 07:44 UTC
[CentOS] Chicken and egg question: passwd and cronjob
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. -- Michael Gliwinski Henderson Group Information Services 9-11 Hightown Avenue, Newtownabby, BT36 4RT Phone: 028 9034 3319 ********************************************************************************************** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee and access to the email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed in the governing client engagement leter or contract. If you have received this email in error please notify support at henderson-group.com John Henderson (Holdings) Ltd Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT. Registered in Northern Ireland Registration Number NI010588 Vat No.: 814 6399 12 *********************************************************************************