-
Notifications
You must be signed in to change notification settings - Fork 255
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
Cannot write to a file if the owner doesn't have the read permission #125
Comments
That is correct, gocryptfs always needs read permissions due to read-modify-write. I'll see if can work around this by chmod'ing the file for an instant. |
Due to RMW, we always need read permissions on the backing file. This is a problem if the file permissions do not allow reading (i.e. 0200 permissions). This patch works around that problem by chmod'ing the file, obtaining a fd, and chmod'ing it back. Test included. Issue reported at: #125
Should be fixed by 3062de6 - does it work for you? |
I'm sorry, but it seems not work. |
What is you
|
Oh, I'm sorry my version is: |
Thanks for testing! |
The owner cannot write to a file if he doesn't have the read permission, even if he has the write permission.
For example, if the file's mode is --w-rw-rw-, the owner cannot write to the file
The text was updated successfully, but these errors were encountered: