Read only access to specific directories and read-write access to others

What is the problem you are having with rclone?

How can I configure rclone / Google Drive to grant fine-grained read-write privileges to rclone?

The situation is: I have been granted access to a Google Drive shared folder.
Inside this folder there are folders for related to different projects, e.g.:

shared/project0/
shared/project1/
shared/project2/
shared/muh_project/
...

I followed the Google Drive tutorial (https://rclone.org/drive/) and was able to download the shared folder to my server and to upload my server files to shared/muh_project/

The problem is: right now, rclone has read and write privileges to the entire shared folder and I am scared about the possibility of messing up the other projects.

How can I configure rclone / Google drive so that:

  1. rclone only has access /shared (I don't want it to be able to access other Google Driver folders)
  2. rclone has read-only access to everything inside /shared
  3. rclone has read-write access to /shared/muh_project

What is your rclone version (output from rclone version)

rclone v1.53.3

  • os/arch: linux/amd64
  • go version: go1.15.5

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu Server 20.04 - 64 bit
CentOS Linux 7 (Core) - 64 bit
Windows 10 - 64 bit

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

~/rclone-v1.53.3-linux-amd64/rclone sync -v --create-empty-src-dirs biomaldrive:shared/ ~/synced

The rclone config contents with secrets removed.

[biomaldrive]
type = drive
scope = drive
root_folder_id = 1_hllszokyUVztOBGUbTZrCrNJ4NsTJHJ
token = removed

That's not how access works via the API unfortunately.

You can create team drives and share only certain things out to certain people.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.