Inconsistent file ownership/permissions in OCI image and final deployment #1453
Unanswered
maringuyot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In my bootc image I download packages using dnf. Some of these packages create users and groups and set file permissions on install, using pre-install scripts.
When inspecting my OCI image after being built (using podman exec /bin/bash), I can see that the correct permissions are set for configuration files and the likes. However, when generating a VM image (qcow2) and booting the operating system, it resets the permissions for the configuration files to root:root (in /etc, not sure about other paths).
After reading the documentation on managing users and groups, I've created sysusers.d entry files for each user and group, and assigned them to various groups. I've also decided to activate transient /etc mode, as recommended.
My questions are:
Thanks for any tips in advance.
Beta Was this translation helpful? Give feedback.
All reactions