I just recently started using the piwigo container put out by linuxserver.io on my Synology NAS. I noticed that whenever I restart the container, the permissions on the share folders that are mapped as volumes to the container always get their permissions reset so only the NAS’s administrators group & my NAS admin account have access to the folders.
The share is named “Forum Pics”, and it’s permissions are for the “Share - Forum pics” & “administrators” groups to have access. I’ve propagated those permissions down to all subfolders & files of the share (ie…piwigo pics & piwigo_virtual_upload"). However, whenever the container starts…it resets “piwigo pics” & “piwigo_virtual_upload”) to “adminstrators” & my admin account.
It also does the same thing to another share & subfolder that I map as a volume to the container.
Anyone ahve any idea why it’d be doing this? I dont like how a container is resetting my folder permissions.
I have other containers running with my local admin’s PUID & PGID pointed to other volume shares…and those containers don’t mess with the access permissions at all.
okies. by chance…do you know how to do that on a Synology NAS? I’m far from being a linux/unix/*nix guru, or even knowledgable in it. But I can get around putty & all.
gots another question for ya…
is the way piwigo starts up & taking ownership of the /config mount specific to piwigo? My other containers in docker don’t do that…the mounted volumes retain the permissions I’ve set on them.
I stuck at a similar problem:
Piwigo container: latest
MySQL:latest
Docker in Syno NAS. Managed by Portainer.
Piwigo is running
Able to import manually photos
volume /gallery is mounted in the docker setup (as is defined in your container description)
let say:
volume:
/volumeX/docker/piwigo/gallery
/gallery
I have centralised smb for photos. Let say
symlink created by:
`mount --bind ‘/volumeX/photo’ ‘/volumeX/docker/piwigo/gallery/galleries’
also added into rc.local (to avoid symlinks lose after NAS restart)
As expected, works. All photos are available at the ‘/volumeX/docker/piwigo/gallery/galleries’ folder
seen from the NAS
seen from Portainer/container console. The owner of the files/subfolder is ‘nginx’.
So what about sync into Piwigo DB?
7. Sync from Piwigo Admin/Tools/Synchronize
A. Expected behaviour: sync of ‘.galleries’ folder … follow the screenshot:
Err.1:
opendir(./galleries): failed to open dir: Permission denied in /gallery/admin/include/functions.php on line 608
line 606:if (is_dir($path))
line 607: {
line 608: if ($contents = opendir($path))
seems to be a problem with the path
Err.2:
line 70: if (is_dir($path) && $contents = opendir($path) )
seems to be a problem with the path
PS:
all mounted folders/files contain only defined characters. to be sure