Replies: 3 comments 2 replies
-
This is not how umask works. umask removes the permission bits from the file. If the file is already created with less permissions that is fine. The blog mentions that you have to manually chown the files: I don't think it is a good idea to make images world readable by other as default. @vrothberg @rhatdan WDYT? |
Beta Was this translation helpful? Give feedback.
-
None of the files or folders were in existance at the time of the pull, it was a completely fresh folder. I have tried ACLs with default permissions too but had the same issue, the newly created files and folders did not obey the default ACL permissions too. The idea of this additional immage store is to eliminate the requirement that every user on the syae system needs to have a duplicate of all images required for development and that these images can be updated and refreshed in a central location for all users. I agree that it's not best practice to have all images readable by everybody by default but so far there seems no way to do that when you want to. |
Beta Was this translation helpful? Give feedback.
-
Look at the force_mask field in storage.conf.
|
Beta Was this translation helpful? Give feedback.
-
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman pull is not respecting current umask when using pull with root= and additionalimagestores
Steps to reproduce the issue:
Set umask via
umask 002
Issue container pull into empty imagestore, e.g., /opt/container
podman --root=podman --root=/opt/container/ pull docker.io/gcc:11.2
Observe current permissions
Describe the results you received:
Describe the results you expected:
I expected the files to be read/executable by all users as defined in umask.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No, did not verify latest version.
Yes, did read Podman Troubleshooting Guide.
Additional environment details (AWS, VirtualBox, physical, etc.):
I have run into this issue trying to implement the excellent guidance from this blog post: https://www.redhat.com/sysadmin/image-stores-podman
Beta Was this translation helpful? Give feedback.
All reactions