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

gocryptfs on network share: users in same group are denied access #387

Closed
CardContact opened this issue Mar 29, 2019 · 3 comments
Closed
Labels

Comments

@CardContact
Copy link

We try to setup encrypted project folders on a cifs network share, but that fails when users are attempting to access directories created by the initial user.

Internal files (gocryptfs.conf, gocryptfs.iv) are created with 0400, which prevents access from users in the same group.

Is this done intentionally ?

@rfjakob rfjakob added the bug label Mar 30, 2019
@rfjakob rfjakob changed the title gocryptfs on network share gocryptfs on network share: users in same group are denied access Mar 30, 2019
@rfjakob
Copy link
Owner

rfjakob commented Mar 30, 2019

They are created with the most restrictive permissions possible, but this obviously breaks your use case, and that is not intentional, no.

I think your use case is valid, so how about this: gocrypts.conf stays 0400, and the owner should explicitly chmod it to allow access from others.

gocryptfs.diriv are created 0440.

@CardContact
Copy link
Author

That would work for me.

I already changed 0400 to 0440 for gocryptfs.diriv and gocryptfs.conf to give it a try. That worked fine in a network share. Requiring the owner to change to 0400 for gocryptfs.conf is a good idea.

rfjakob added a commit that referenced this issue Mar 30, 2019
Makes it easier to share an encrypted folder via a network drive.

#387
@rfjakob
Copy link
Owner

rfjakob commented Mar 30, 2019

Should be fixed, thanks for the report!

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

No branches or pull requests

2 participants