Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change hubics mount default permissions #124

Open
Nihim opened this issue Mar 19, 2016 · 3 comments
Open

change hubics mount default permissions #124

Nihim opened this issue Mar 19, 2016 · 3 comments

Comments

@Nihim
Copy link

Nihim commented Mar 19, 2016

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?

@romanrm
Copy link

romanrm commented Mar 19, 2016

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.

@Nihim
Copy link
Author

Nihim commented Mar 19, 2016

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).

@gunslingerfry
Copy link

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--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants