I have a perl script which runs several disk operations on a remote drive during its execution. Running this from the system crontab works fine. However, setting up a user cron job for root, which calls the script, fails running disk operations such as fdisk, mkfs, fsck, e2label, etc. Since the user root has no problem executing these tasks, even in a script, there seems to be a permissions difference when executing tasks from a cron job. Can anyone shed some light or give advice on how to get around this?
Thanks.
Thanks.