hubicfuse icon indicating copy to clipboard operation
hubicfuse copied to clipboard

change hubics mount default permissions

Open Nihim opened this issue 9 years ago • 3 comments

Right now when mounting hubic permissions are set to 666, which is not very nice.

There is enable_chmod but last time I tried it nothing really happened (set it to true, tried to chmod files but it hang there doing nothing). Is there a way when hubic is mounted to set a different permission? like 644?

Nihim avatar Mar 19 '16 12:03 Nihim

Keep in mind that other users (even root!) can't see your hubic content unless you pass the "allow_other" FUSE option. In this context it seems like the mount permissions are not as important.

romanrm avatar Mar 19 '16 12:03 romanrm

I am afraid I am using that flag since I want hubic's content to be visible to other users - there is a ro ftp on top of hubic in this case. So as far as I can tell a different permission set would be the only solution (precaution).

Nihim avatar Mar 19 '16 12:03 Nihim

This is an old topic but you can actually do this already with fuse by using the umask option. This is how I am calling hubicfuse: hubicfuse /var/hubic -o noauto_cache,sync_read,default_permissions,allow_other,umask=003,uid=1001,gid=1001 umask is the permission bits you want disallowed. So here the whole file system has 774 aka rwxrwxr--

gunslingerfry avatar Nov 10 '17 19:11 gunslingerfry