-
Notifications
You must be signed in to change notification settings - Fork 263
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
permission change impossible on network drive #462
Comments
I have a similar operating environment. Every time I start metube, it reports lots of errors when modifying permissions, but it does not affect. I think the key is whether the permissions are configured correctly when the host mounts /mnt/nas. You should first check whether it can be read and written normally, and then map it to the container. If the host is a synology, I recommend setting the user id to the same as the synology admin's id. |
The root user can write the folders just fine - in fact the .metube folder gets created. The problems start when metube tries to change the owner of the directory and lowers its privileges to user 1000:1000. I am using Truenas, but this is in fact not dependent on the nas at all - the owner setting is a limitation of the samba protocol itself. I tried specifying in the compose file |
As far as I know compose will change the folder permissions when creating the container. This may cause the folder permissions to not match what you expect. set |
I am not mounting the cifs share with docker: the cifs drive is already mounted by fstab, so I cannot change the permissions at mount (I'm not allowed to change fstab settings by company policy). I just tried The solution would be if metube just tried to create every downloaded file as root. Is this possible? |
i think the
yes |
I would like to mount a samba network drive to a docker container for the downloads. This does not work, because metube tries to change permissions on the drive and discard root privileges to write to it. As you may know, even root cannot change ownership/access rights on a samba volume. The ideal solution would be if metube just tried to create every downloaded file as root. Is this possible?
My config:
The error in the logs:
The text was updated successfully, but these errors were encountered: