Google Drive Public Link Issue when Parent Folder is Publically Shared in Shared Drives
#5 318 ouverte le 9 mai 2021
Métriques du dépôt
- Stars
- (57 185 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
The Associated Forum Post URL
https://forum.rclone.org/t/rclone-link-google-drive-permission-error/20240
Someone has Mentioned about the Problem which I am facing in rClone in Forum but Didn't Specify the Correct Reason why that Problem is Happening. And, That Thread has been Marked as Closed, so Creating an Issue on GitHub with a Possible Workaround for an Issue.
Problem You are Having with rClone
When the Folder is Shared in Google Drive (Through Official Apps or rClone), Then All the SubFolders and Files within that Folder becames Publicly Available (The Way It is Intended to Be). Now, When I try to Get Link of Any SubFolders or Files Inside that Main Folder (Which are Already Publically Shared) through rClone Link, then rClone gives an insufficientFilePermissions probably because rClone is trying to Set/Change the Permission which isn't Allowed as long as Parent Folder is Publically Shared. Now, I was hoping If it would be possible to Check Current SubFolder or File Permissions whenever There is an insufficientFilePermissions, and If it is Publically Shared (Checked Through File Permissions), Output the Generic Google Drive Link using Folder/File ID.
rClone Version
rclone v1.56.0-beta.5482.732bc08ce
- os/version: ubuntu 18.04 (64 bit)
- os/kernel: 4.19.112+ (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.3
- go/linking: static
- go/tags: non
Which OS You are Using ?
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Which Cloud Storage System are You Using ?
rClone Command You were Trying to Run
rclone lsf InspectorWilliamHenderson:A
B/
C.mkv
rclone link InspectorWilliamHenderson:A/B
https://drive.google.com/open?id=1-yFDDtM0UFULOIYXpFVAo8I_9xxxxxxx
rclone link InspectorWilliamHenderson:A/C.mkv
https://drive.google.com/open?id=1KaodHXY7bPFvBUrPh8Uw7zXGkxxxxxxx
rclone link InspectorWilliamHenderson:A
https://drive.google.com/open?id=1-ol9ke_EVgIMp4erbHfuAtet8xxxxxxx
rclone link InspectorWilliamHenderson:A/B
Failed to link: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
rclone link InspectorWilliamHenderson:A/C.mkv
Failed to link: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
rclone link InspectorWilliamHenderson:A
https://drive.google.com/open?id=1-ol9ke_EVgIMp4erbHfuAtet8xxxxxxx
When these Commands were Ran, All The Folders and Files had their Link Sharing Turned Off.
rClone Log with -vv Flag
DEBUG : rclone: Version "v1.56.0-beta.5482.732bc08ce" starting with parameters ["rclone" "link" "InspectorWilliamHenderson:A/C.mkv" "-vv"]
DEBUG : Creating backend with remote "InspectorWilliamHenderson:A/C.mkv"
DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
DEBUG : fs cache: adding new entry for parent of "InspectorWilliamHenderson:A/C.mkv", "InspectorWilliamHenderson:A"
DEBUG : Google drive root 'A': attempting to share single file 'C.mkv'
DEBUG : 4 go routines active
Failed to link: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
How to Use GitHub
- Please Use the 👍 Reaction to Show that You are Affected by the Same Issue.
- Please Don't Comment if you have No Relevant Information to Add. It's just Extra Noise for Everyone Subscribed to This Issue.
- Subscribe to Receive Notifications on Status Change and New Comments.