Fixing Permissions
You can do it either in the DSM environment or with the terminal/command line:
DSM:




Give it the same user, that runs your fb-script. Worked with DSM 5.1
If that doesn't seem to work immediately you might have to check the user permissions in Control Panel/User by right-clicking the profile and then setting Permissions.
Terminal:


You have to change [user] and the [path/...] to the profile and the destination you need. I for example do "chown admin /volume2/video/Movies". If that doesn't seem to work immediately you might have to change the user permissions with "chmod 777 /path/to/destination"
That should do it.