-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Default file-creation mode differs from Linux default #16466
Comments
micahjsmith
changed the title
Default file-creation mode has unexpected properties
Default file-creation mode differs from Linux default
May 19, 2016
Agreed. Would you be interested in making a PR to fix this? |
Great, yes, I can take care of it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default file-creation mode using Julia's
open
is to give the fileu=rw, g=w, o=w
permissions (src/support/ios.c):On the other hand, Linux's default (or "usual case") seems to be
u=rw, g=rw, o=rw
:Given that Linux's default umask is 0022, the resulting Linux permissions match Julia. But if the user has a more permissible umask set, then Julia will not match Linux:
On a multi-user system, teams may use umask to ensure that files are appropriately accessible. My background here is that I created a file in a shared data directory using
writetable
; my coworker was unable to overwrite it because the file did not have group write permissions even though in other usage, the value ofumask
we have set would have allowed that. So my only recourse would be to continuously dochmod
on the file.So I'm wondering why Julia doesn't act like Linux here and set the same default file creation mode.
(See also #16237 for previous discussion.)
The text was updated successfully, but these errors were encountered: