New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UID and GID don't seem to work #422
Comments
First, with Synology you cannot map
Then, you need to check what is the owner and group of This might also help: |
I set the folders as you said to be under the storage folder and I created a user (in the Synology Control Panel) specifically for (and called) "CrashPlan". I ran the command 'id' to get the new CrashPlan user's UID and GID and set those in the Portainer Stack, but I still can't browse into folders without the EVERYONE read permission. The folder was created by my admin user's account. I was previously using that admin users UID. |
What are the user, group and permissions associated to the files/folder themselves ? If they are not owned by the "CrashPlan" user you created, you have to make sure that files/folders have a group in which the "CrashPlan" user is part of. Maybe you can share some real examples. Running |
Here's the relevant output from the ls -l /volume1: I had all the permissions for the "CrashPlan" user assigned to the user itself but now I created a new group called "Backup" and set the permissions there and removed them from the user. (Read Only for all the folders listed) running id before: I was using USER_ID: 1029 and GROUP_ID: 100 now GROUP_ID: 65538 In the Synology File Station UI when I view the permissions on every folder that "CrashPlan" should have RO access to, I can see that that the group permission exists on that folder. |
Do you see the same thing inside the container ?
|
I couldn't run those commands logged in as my admin user, I had to be root. I hope that's ok. root@XXX:~# docker exec CrashPlan ls -ld /storage root@XXX:~# docker exec CrashPlan ls -l /storage |
@jlesage Following up, did you have any more thoughts on this or things I can try? Can you tell if I'm doing something wrong here? |
I'm a little bit confused with all this. Can you please share your latest compose file. Also, please share again the output of these commands (run as root):
|
I'm running this container on a Synology and I'm having trouble viewing folder contents.
I've set the parameters USER_ID and GROUP_ID but I'm still unable to view folder contents. The only way I've been able to view the contents is if I add EVERYONE:ro permission to each folder I want to backup. This is really not an acceptable solution long term and if anyone can help please lmk. I'm really not sure if this is a bug with the container or if I'm missing something.
Using Portainer I've connected to the Exec Console using /bin/sh:
As root I can cd and ls to see all the files and I get this:
As XXXX I CANNOT cd and ls to see all the files and I get this:
I'm not sure if that means anything (I'm not that familiar with Linux, I just searched how to list all users).
For reference here's my Portainer Stack (Docker-Compose file):
The text was updated successfully, but these errors were encountered: