I have a very modest script to backup the Kerberos database that I would like to automate. The script looks like this...
/usr/sbin/kdb5_util dump $backup_path/kerberos-dump.bak
...which runs fine when I am logged on as root. However when scheduling this via Crontab, I get the following error (being posted to the root's mail folder) and as a result a dump and _ok file is not created.
Date: Tue, 28 Jul 2015 15:01:01 +0100 (BST)
kdb5_util: No such entry in the database while retrieving master entry
My Crontab file looks like this...
15 03 * * * root /root/backup_script>/tmp/backup.log
01 15 * * * root /root/kerberos_backup_script
I'm confused how this script works OK when run manually, but not when automated.
Any help greatly received!
Thanks in advance.