Question: I use a PuTTY session to copy my nightly backups to another location. I log in as the `root` user and change directories to `/store/BackupLocation` which holds backups from the last 100 days. I can then run:

`bash /bin/ScriptThatCopiesBackup.sh`

This script copies my backups from `/store/BackupLocation` to another directory `/store/BackupArchive`

This all works perfectly, but I can't seem to schedule this script to run automatically in crontab. Instead I get the following permission error everyday:

```
/bin/bash: /bin/ScriptThatCopiesBackup.sh :Permission denied

```

**My question is, why am I recieving this error message even though everything is done by root? And what can I do to resolve this?**

Here are the permissions for my script:

```
-rw-r--r-- 1 root root 213 June 19 2013 ScriptThatCopiesBackup.sh

```

Here are my crontab settings:

```
30 16 * * * /bin/ScriptThatCopiesBackup.sh

```

Answer: 
The problem is that your script is not set to be executable. `chmod u+x /bin/ScriptThatCopiesBackup.sh` will make the script runnable by its owner (in this case, `root`).
Your problem could be that you are editing the wrong `crontab` file. (Even though you said you are doing everything from `root`). Try editing the `crontab` file with `crontab -u root`.

It is also possible that your script is not executable. `chmod +x /path/to/yourscript.sh`should make it executable.