Page 1 of 1

[AccessDeniedException] Fixing Permissions

Posted: 05 Oct 2015, 14:21
by rednoah
If you get a AccessDeniedException when processing files you'll need to fix the owner/group and permissions of the output folder.

Fixing Permissions

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

DSM:
:arrow: Log into DSM of your NAS, as user with admin rights.
:arrow: Open File Station and locate the destination folder
:arrow: Right click and select properties
:arrow: At the bottom of the window you have a drop-down menu that lets you select owner

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:
:arrow: ssh into your NAS (I did it as root)
:arrow: type: chown [user] [/path/to/destination]

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.