You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure, thanks! I'm publishing version 0.7.24 that should fix your issue. I wasn't allowing file/folder creation and renaming in the .shared folder to avoid accidentally messing with shared resources, but with service accounts I don't think there are other workarounds (like add to my drive).
@astrada This issue was also driving me nuts, spent a lot of time trying to figure out why can't the shared file be edited & saved. I wished I had visited this page earlier.
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?
The text was updated successfully, but these errors were encountered: