Skip to content
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

Unable to share mounted folder using NFS #42

Open
arsaboo opened this issue May 9, 2020 · 4 comments
Open

Unable to share mounted folder using NFS #42

arsaboo opened this issue May 9, 2020 · 4 comments

Comments

@arsaboo
Copy link

arsaboo commented May 9, 2020

I mounted my Gdrive on my Synology NAS using the following command:

sudo docker run -d --name rclone-mount --restart=unless-stopped --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined -e RemotePath="gdrive_psu_crypt:" -e MountCommands="--allow-other --allow-non-empty --dir-cache-time 24h --vfs-cache-max-age 40h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M" -e ConfigName="rclone.conf" -v /volume1/Misc/Downloads:/config -v /volume1/Media/gdrivepsucrypt:/mnt/mediaefs:shared mumiehub/rclone-mount

On my NAS, I can see the files in the gdrivepsucrypt folder. However, I cannot see the contents of the folder from any other device on my network. I have shared the /volume1/Media/ and I see the contents of the other folders in that folder. Only the gdrivepsucrypt is empty.

The only thing that I could point out is that the owner of the folder changes to root after mounting.
image
The other folder in the Media directory has admin as the owner.
image

Any pointers will be highly appreciated.

@Mumie-hub
Copy link
Owner

Mumie-hub commented May 13, 2020

you could try to set the same permissions as the export user admin or set the same permissions like the "TV Shows" folder on the mountpoint (gdrivepsucrypt).
Something like:
-e MountCommands="--allow-other --uid 1000 --gid 1000 --umask 022 --default-permissions"
or maybe you need --allow-root?

@arsaboo
Copy link
Author

arsaboo commented May 18, 2020

I tried all the following, but none of them worked:

docker run -d --name rclone-mount_test --restart=unless-stopped --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined -e RemotePath="gdrive_psu_crypt:" -e MountCommands="--allow-other --allow-root --uid 0 --gid 0 --umask 022 --default-permissions --allow-non-empty --dir-cache-time 24h --vfs-cache-max-age 40h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M" -e ConfigName="rclone.conf" -v /volume1/Misc/Downloads:/config -v /volume1/Media/gdrivepsucrypt:/mnt/mediaefs:shared mumiehub/rclone-mount

docker run -d --name rclone-mount_test --restart=unless-stopped --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined -e RemotePath="gdrive_psu_crypt:" -e MountCommands="--allow-other --uid 1000 --gid 1000 --umask 022 --default-permissions --allow-non-empty --dir-cache-time 24h --vfs-cache-max-age 40h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M" -e ConfigName="rclone.conf" -v /volume1/Misc/Downloads:/config -v /volume1/Media/gdrivepsucrypt:/mnt/mediaefs:shared mumiehub/rclone-mount

docker run -d --name rclone-mount_test --restart=unless-stopped --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined -e RemotePath="gdrive_psu_crypt:" -e MountCommands="--allow-other --allow-root --default-permissions --allow-non-empty --dir-cache-time 24h --vfs-cache-max-age 40h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 1G --buffer-size 32M" -e ConfigName="rclone.conf" -v /volume1/Misc/Downloads:/config -v /volume1/Media/gdrivepsucrypt:/mnt/mediaefs:shared mumiehub/rclone-mount

@Mumie-hub
Copy link
Owner

Mumie-hub commented Jun 11, 2020

you cant use both commands --allow-other --allow-root at the same time.

@arsaboo
Copy link
Author

arsaboo commented Sep 9, 2020

I retained --allow-other but still the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants