Description
I have a folder in my Google Drive which I have shared with a service account as Editor.
Mounted like so:
google-drive-ocamlfuse -serviceaccountpath key.json -serviceaccountuser xxxxxxxx-compute@developer.gserviceaccount.com /tmp/googledrive
Read operations work fine.
My problem is that write operations always fail with "Permission denied".
/tmp/googledrive/.shared/shared_folder$ ls
bar.txt
/tmp/googledrive/.shared/shared_folder$ cp bar.txt foo.txt
cp: cannot create regular file 'foo.txt': Permission denied
-debug logs show nothing insightful:
[1779.889564] TID=301: fopen /.shared/shared_folder/bar.txt O_RDONLY
[1779.889573] TID=301: BEGIN: Getting metadata from context
[1779.889577] TID=301: END: Getting metadata: Valid
[1779.889582] TID=301: BEGIN: Loading resource /.shared/shared_folder/bar.txt (trashed=false) from db
[1779.889593] TID=301: END: Loading resource /.shared/shared_folder/bar.txt (trashed=false) from db: Found (id=897, state=ToDownload)
[1779.889671] TID=302: getattr /.shared/shared_folder/foo.txt
[1779.889679] TID=302: BEGIN: Getting metadata from context
[1779.889683] TID=302: END: Getting metadata: Valid
[1779.889687] TID=302: BEGIN: Loading resource /..shared/shared_folder/foo.txt (trashed=false) from db
[1779.889702] TID=302: END: Loading resource /.shared/shared_folder/foo.txt (trashed=false) from db: Found (id=901, state=NotFound)
[1779.889713] TID=302: File not found: stat /.shared/shared_folder/foo.txt
[1779.889763] TID=303: mknod /.shared/shared_folder/foo.txt 100755
[1779.889772] TID=303: Permission denied: mknod /.shared/shared_folder/foo.txt
Authenticating as myself everything works as expected.
Tried everything I could think of: root/non-root, different machines, checked scopes, checked share permissions...
Any ideas, or suggestions how to debug further?