mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Help: setup user permissions in synology docker #138
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @proohit on GitHub (Sep 7, 2021).
TLDR: I want to know how to setup user permissions for the mounted volume in the shared docker folder. Getting permission denied when attempting to write /data/updates.json
Note that I did not change folder permissions manually since that might conflict with permission management by dsm. I wanted to know if it's possible to manage permission via dsm.
What are you using to run the container: docker (via dsm frontend)
Logs:
Host OS: DSM 7
@qdm12 commented on GitHub (Sep 7, 2021):
You should use the SSH terminal, I think there is one in the DSM UI. I think it's named terminal from my memory.
Please don't close the issue, I'll add this to the documentation.
Alternatively you can run the container as user
0(root) although that's not great security wise.@GeorgesOrwell commented on GitHub (Sep 8, 2021):
You have to do this in SSH (with Putty):
@proohit commented on GitHub (Sep 27, 2021):
Sorry for the late reply. I know that this works, as mentioned in my initial post. I was just wondering if it was also possible without it, similar to how e.g. the jdownloader image does it.
@qdm12 commented on GitHub (Sep 27, 2021):
@proohit it's mentioned in the readme:
The jdownloader container probably runs as root, which isn't good security wise (if it gets compromised then an attacker has privileges).
@m0veax commented on GitHub (Oct 9, 2021):
Just if someone finds this issue, i did this:
It works great with DSM7. The chown wouldn't work without sudo or you have to login as root. If you need another User ID, you need to build the container by yourself.
@redtripleAAA commented on GitHub (Jul 21, 2022):
@m0veax do you have any users with id 1000 in your DSM?
Default is root:
uid=0(root) gid=0(root) groups=0(root),2(daemon),19(log)
and usually the second admin user is:
1026
Did you create it manually to match that ID 1000? or am I missing something?
@P-Verbrugge commented on GitHub (Jan 28, 2025):
Having the same issue: 2025-01-28T21:41:31+01:00 ERROR opening file: open /updater/data/updates.json: permission denied
I run it in a docker container on OpenMediaVault. The config file is read and works fine. But for some reason the updates.json file, keeps giving an error.
Any ideas?