-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Install: setup umask #1222
Install: setup umask #1222
Conversation
Do you think it's good to show users that their Or at least to the ones who have disabled reading for |
It doesn't change |
Sorry for not being clear, by temporarily I mean the same, do you think it's good to tell users this is changing created files by |
No I don't think users need to be aware of any of this. ideally, this should be solved (also) by doing proper chown/chmod after file creation. or even better at each install.sh invocation. |
That can be taken care of in another PR. This LGTM for now. |
An older issue, that have been likely caused by this problem: #418 |
@@ -5,6 +5,8 @@ if [[ -n "$MSYSTEM" ]]; then | |||
exit 1 | |||
fi | |||
|
|||
umask 002 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refreshing my memory:
new directories will have permission 775 and new files permission of 664
Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhm, yes...
easy tester:
➜ (umask 002; mkdir dir1; touch file1; ls -ld dir1 file1)
drwxrwxr-x 2 glen staff 64 dets 28 23:35 dir1/
-rw-rw-r-- 1 glen staff 0 dets 28 23:35 file1
Rerunning CI to dodge #1171 ... set to auto-merge once green. Thanks @glensc @aminvakil. :)
Hrm, that would be a first. We don't really ever backport to older versions, especially now that we're on CalVer. Why are you hitting this (why is this the first we're hearing about it?)? Presumably you were able to work around the problem, yes? |
@chadwhitacre it's not common to change umask. also, I'm guessing people who hit any problem just do |
@chadwhitacre as for the problem workaround, I ran and once I knew it's about umask, the workaround is to set umask once prior script run. |
So a user has to have set a umask in order to hit this issue? I guess that is indicated in your repro steps:
In that case I guess the user could also manually set a more relaxed umask before running 21.5.0 or 9.1.2. With these workarounds available, I don't see a strong enough case for issuing our first x.x.x.1 releases. |
Thanks for taking the time to figure out the root cause and report it, @glensc! 😁 |
Setup default
umask
, otherwise files created with permissions that containers later can't read.To reproduce, try:
also known to be broken with
21.5.0
and9.1.2
, i.e the versions noted in hard stops:so, perhaps carry the fix to those branches as well