Hello,
I am using rclone 1.52 on a raspberry with raspian buster.
I want to mount Gdrives in the file-system of raspian. So I discovered rclone.
I want to use autofs to mount Gdrives on Demand.
I discovered this script:
"rsync for cloud storage" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files - rclone/rclone
How do I change the owner and group of the mounted files and directories on Gdrive.
Thanks for your help
asdffdsa
(jojothehumanmonkey)
June 21, 2020, 10:34pm
2
hello and welcome to the forum,
have you read documentation?
https://rclone.org/commands/rclone_mount/#options
yes,
you can set permissions with "dir-perms FileMode" and "file-perms FileMode", but I found nothing about how to set ownership to user X and group to group Y
You'd want:
--uid uint32 Override the uid field set by the filesystem. (default 1000)
--gid uint32 Override the gid field set by the filesystem. (default 1000)
2 Likes
Thanks,
but how do I have to use these Options together with helper script?
remote -fstype=fuse.rclonefs,config=/home/piUser/.config/rclone/rclone.conf,allow-other,allow-non-empty,uid=1000,gid=1005,dir-perms=660,file-perms=660 :remote:
this doesnt work by this way
I am not sure what a helper script is as you put them in the rclone command line with your mount.
So you'd add:
rclone mount remote: /home/test --uid 1001 --gid 1001
1 Like
system
(system)
Closed
August 22, 2020, 6:32am
7
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.