Hello, first time here, trying to connect n8n to my public share on my Synology Drive. The n8n instance is hosted on the same Synology. I just get a permissions error I cannot seem to resolve. Please help.
Here is my n8n instance with variables:
Here is the Workflow:
{
"name": "Test Write to Public Drive",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
],
"id": "a08dfc76-083d-48e3-8bee-14c3b25fcc90",
"name": "When clicking ‘Execute workflow’"
},
{
"parameters": {
"jsCode": "return [\n {\n json: { success: true },\n binary: {\n data: {\n data: Buffer.from(\"Connection Successful! n8n can write to your Synology Public drive.\").toString('base64'),\n mimeType: \"text/plain\",\n fileName: \"n8n_test_file.txt\"\n }\n }\n }\n];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
208,
0
],
"id": "100c5bd3-c450-4f16-b2e9-837e5c28acca",
"name": "Code in JavaScript"
},
{
"parameters": {
"operation": "write",
"fileName": "/mnt/public/test.txt",
"options": {
"append": false
}
},
"type": "n8n-nodes-base.readWriteFile",
"typeVersion": 1.1,
"position": [
432,
-256
],
"id": "813c2d31-61f0-4150-b167-238ac45f01f0",
"name": "Read/Write Files from Disk"
},
{
"parameters": {
"operation": "upload",
"path": "/Public/n8n_test_file.txt",
"options": {}
},
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
560,
-16
],
"id": "742507c2-2f06-47f0-a4ca-58c78f783edf",
"name": "FTP",
"notesInFlow": false,
"credentials": {
"ftp": {
"id": "SGYeHwuzi4WZc6o7",
"name": "FTP account"
}
}
}
],
"pinData": {},
"connections": {
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Code in JavaScript": {
"main": [
[
{
"node": "FTP",
"type": "main",
"index": 0
},
{
"node": "Read/Write Files from Disk",
"type": "main",
"index": 0
}
]
]
},
"Read/Write Files from Disk": {
"main": [
[]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1",
"availableInMCP": false
},
"versionId": "7a5448b8-76c6-4d4e-b354-37541a0d82da",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "23d2a617fbb2e35c9905663443c52c10e57e897dc8924c5ec22fdbea73095869"
},
"id": "65dAKIu_HIDLK4llbayH7",
"tags": []
}
Here is the error:
{
"errorMessage": "Forbidden by access permissions, make sure you have the right permissions",
"errorDetails": {
"rawErrorMessage": [
"EACCES: permission denied, realpath '/mnt/public/test.txt'",
"EACCES: permission denied, realpath '/mnt/public/test.txt'"
],
"httpCode": "EACCES"
},
"n8nDetails": {
"nodeName": "Read/Write Files from Disk",
"nodeType": "n8n-nodes-base.readWriteFile",
"nodeVersion": 1.1,
"operation": "write",
"itemIndex": 0,
"time": "1/20/2026, 7:20:01 PM",
"n8nVersion": "2.3.6 (Self Hosted)",
"binaryDataMode": "filesystem",
"stackTrace": [
"NodeApiError: Forbidden by access permissions, make sure you have the right permissions",
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Files/ReadWriteFile/actions/write.operation.ts:130:10)",
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Files/ReadWriteFile/ReadWriteFile.node.ts:69:17)",
" at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1045:8)",
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1226:11)",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1662:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2297:11"
]
}
}



