[AccessDeniedException] Fixing Permissions

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
User avatar
rednoah
The Source
Posts: 23100
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[AccessDeniedException] Fixing Permissions

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply