I'm setting up a small private server which is connected to internet. For security reasons I would like to lock my root account after setting everything up and then use a sudo user for further maintenance of the server.
I use this to lock and unlock the account:
Lock the account: # chage -E 0 root
Unlock the account: # chage -E -1 root
BUT: Everything worked perfectly until next day after I locked the account. My expected cron status mails didn't arrive anymore and in sysfile I just see such entries:
Feb 14 06:25:01 localhost CRON[2468]: Authentication failure
How could I lock the account without disturbing the cron activities??
Using: Debian Jessie (ARMBian) on a Banana Pi.