Closed haleksandre closed 1 year ago
From your config, I would recommend that you keep SELinux in enforcing and run the container that needs access to the podman socket without SELinux confinement with --security-opt label=disabled
.
We don't have a UID set to 33 by default in FCOS as far as I can see so this likely come from a container messing with your files.
This is what I suspected. I had forgotten that I quickly made an OwnCloud quadlet that mounted the /etc
& /var
, so I did not take the time to properly configure the container. This container is most likely the culprit. Thanks!
Describe the bug
I am able to install the CoreOS with the following butane configuration file:
Butane:
On first boot, for a little while at least, everything seems to be running correctly, files, directories, quadlet get generated & installed. I can login/logout, I can SSH in/out. But after a few minutes, something happens & the directories & subdirectories ownership of /etc & /var get changed to 33:root. This then causes the sudo errors below, which seem to be 'unfixable' as I lose sudo privileges.
Also, after this I can no longer SSH into the machine as I hit 'permission denied' because the /home/core (/var/home/core) is now set with 33:root permissions.
Reproduction steps
coreos-install install /dev/sda -I url-to-ignition-config
commandcore
userExpected behavior
root should retain ownership of /etc & /var, except for the directories/subdirectories & files present within the butane config.
Actual behavior
ownership of /etc & /var get changed, in this case to 33:root, after a few minute post first boot.
System details
Butane or Ignition config
Additional information
No response