google-drive-ocamlfuse icon indicating copy to clipboard operation
google-drive-ocamlfuse copied to clipboard

Unable to set permissions!

Open Onepamopa opened this issue 3 years ago • 1 comments

I'm trying to set a specific user/group RW permissions on the googledrive folder with setfacl, however, doesn't seem to work.

Folder is ~/googledrive/ in user testing (/home/testing), I'd like to allow user/group testing2 to be able to access it (that is, w/o using chmod 777, even though it doesn't work as well -- chmod: changing permissions of 'googledrive': Input/output error), so, tried:

setfacl -R -m u:testing2:rw -m g:testing2:rw googledrive, however, getting "Invalid argument" for some reason..

setfacl: googledrive: Invalid argument setfacl: googledrive/.shared: Invalid argument setfacl: googledrive/.shared/SomeSharedFolder: Invalid argument setfacl: googledrive/.shared/SomeSharedFolder/a: Invalid argument setfacl: googledrive/.shared/SomeSharedFolder/b: Invalid argument setfacl: googledrive/.shared/SomeSharedFolder/c: Invalid argument setfacl: googledrive/.Trash: Invalid argument

I can set the permissions before I start google-drive-ocamlfuse -headless /home/testing/googledrive, however, they are not preserved after I start it. $ getfacl googledrive # file: googledrive # owner: testing # group: testing user::rwx user:testing2:rw- group::rwx group:testing2:rw- mask::rwx other::r-x

After running google-drive-ocamlfuse: $ getfacl googledrive # file: googledrive # owner: testing # group: testing user::rwx group::rwx other::r-x

With another user (including root), I see some weird permissions on the googledrive folder, but I'm unable to enter in there (even with umask=0o000) d?????????? ? ? ? ? ? googledrive bash: cd: googledrive: Permission denied

Why is this the case, and is there an option to do something similar with any of the available config settings?

Onepamopa avatar May 03 '21 16:05 Onepamopa

The permissions on the mounted drive are not enforced (they are just kept for backup purposes) so anyway it wouldn't work as you expect. The permissions of the root folder are set by the mount options.

astrada avatar May 03 '21 19:05 astrada