Replies: 1 comment
-
|
There is a supported way to stop it touching your permissions: run the container as a non-root user. The chown only happens on the root-start path. The relevant script is across export, data, media, consume and scratch — which is exactly the behaviour you're hitting. But So in your compose file: services:
webserver:
user: "1000:1000"
group_add:
- "1004"Then set the permissions you actually want on the host — Two things to adjust while you're in there: Remove Pre-create every directory on the host before starting, because the container can no longer create what it lacks permission for: export, data, media, consume, plus You'll know it worked when the startup log says One extra suggestion for the samba side: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What's your question or issue?
So i just set up a paperless on RPi (Debian-like). I moved all folders to an external drive (USB) so I dont use the internal card too much. I set the paths in the docker yaml. At this point, everything is ok. Now comes my special case that seems to be too simple to not be supported, or maybe I just need another way of achieving what I want: Have consume exposed as samba share
uid 1000 is pi, gid 1000 is pi, gid 1004 is smb.
consumeworks for samba external users, all other folder 1000:1000. paperless has consume access due to uid 1000docker compose upmesses with my permissions by setting them 1000:1000 or uid:gid as set in docker.env on all folder alikeMain culprit
Long story short
Need separate permissions on paperless folders, 1000:1000 on all but
consumewhere i need 1000:1004. Or skip permission check bydocker compose up. Or a better way to do that....What have you tried?
Even if not set in the env file, during
docker compose uppaperless sets permissions to 1000:1000 on all folders (media, export, consume, ....). If set, permissions are set to uid:gid same on all folders.I did not find a way to skip the permission change or have it apply to only some folders.
Paperless-ngx version
2.20.15
Host OS
Rapsberry Pi Arm64
Installation method
Docker - official image
System status
No response
Relevant logs or output
No response
Beta Was this translation helpful? Give feedback.
All reactions