Been trying to run a cron but keep getting permission died error in my /var/spool/mail/root
"/bin/sh: /disk1/archives/backup.website.cron: Permission denied"
This is my ls -hal for the directory my cron jobs are in
drwxr-xr-x 4 root root 4.0K Feb 6 04:22 .
drwxr-xr-x 6 root root 4.0K Feb 5 08:14 ..
-rwxr-xr-x 1 root root 105 Feb 6 04:22 backup
-rw-r--r-- 1 root root 102 Feb 5 08:34 backup.database.cron
-rw-r--r-- 1 root root 75 Feb 5 08:33 backup.website.cron
drwxr-xr-x 2 root root 4.0K Feb 5 08:35 databases
I have backup set to chmod +x
The backup file looks like this
* * * * * root /disk1/archives/backup.website.cron
30 * * * * root /disk1/archives/backup.database.cron
I ran the cron with
crontab /disk/1/archives/backup
I can see that my cron jobs are set up to run because when I do crontab -l I get
[root@web archives]# crontab -l
* * * * * /disk1/archives/backup.website.cron
30 * * * * /disk1/archives/backup.database.cron
backup.website.cron looks like
tar -zcvf /disk1/archives/websites/`date +%Y-%m-%d_%I:%M:%S%p`.tar.gz /web
while backup.website.cron looks like
mysqldump --opt --all-databases | gzip > /disk1/archives/databases/`date +%Y-%m-%d_%I:%M:%S%p`.sql.gz
am i missing a permission change somewhere?
am i running the correct scripts thru the crontab?