Just installed the lucid samba appliance as a bare metal install ( my virtual machine knowlede using virtualbox produced too slow a result...). Its working well.
I wrote a simple bash script to do a nightly back up and email me the output, after installing mutt and msmtp to the appliance (by the way msmtp appears by far the easiest MTA to install and configure for simple tasks like this).
tklbam-backup | mutt -s "Daily Backup Report" <my email> is the key line in the script
The script is owned by root and has rwx permissions.
Running the script as root from the command line worked perfectly, but when I set it to run as a cron job thru webmin, the backup always failed, and the emails the error "Fixclock hook failed", with sh error saying ntpdate didnt exist ! (which it obviously does).
Looking at the fixclock script under the tklbam directory reveals the line which is failing. I changed the line in fixclock using the full path /usr/sbin/ntpdate instead of just ntpdate and now all works well from cron.
I also set uid root on the script as well.
I dont really know how to explain the error though. Can someone enlighten me ?