-
Notifications
You must be signed in to change notification settings - Fork 137
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
Remember input file permissions for when using --output-files. #625
Comments
(triaged w/ @cari-lynn and @vmunishwar) This issue was also discussed in #302 and carvel-dev/imgpkg#93. As noted in those referenced issues, To enable this sort of use-case, we propose adding a flag to the tool specifically to preserve permissions (e.g. At this time, the maintainers cannot commit to a timeline for said feature. However, we would make space to support a contribution. |
Is |
The proposed flag is for Was thinking that we'd preserve the owner's permission bits very much like how Would this be sufficient for this use-case, @GrahamDumpleton? |
Ahhh, getting things mixed up my head again. :-) As to what you are suggesting, seems I still need to fix up group/other permissions since it is the loss of them which is also part of the issue for me. |
Can you elaborate on the difficulty, there? What happens/breaks when you lose the "group" and/or "other" permissions? |
As separately explained with |
Well, then. I'm apt to want to preserve all permissions: all nine bits for existing files, umask for new files. |
Describe the problem/challenge you have
When you use
--output-files
, files are always generated with user permissions ofrwx------
and the original user permissions are not used. Further, output files have no group/other permissions at all.This can cause problems due to execute bits being added to files.
Describe the solution you'd like
Remember the user permissions for input files, and when written to disk as separate files when
--output-files
is used, keep the same user permissions.It is arguable that the group/other permissions should also be remembered and used as well. Alternatively, at least copy user permissions to group/other, with what permissions persist for those being dependent on users umask.
At the same time directories should always be created with
0777
and allow the active umask to then modify this to remove group/other write bit for example.Anything else you would like to add:
Nope.
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: