Description of problem: Followup to bug 2369961. Testing on my end showed that there's actually an issue contrary to the comment made by ZC. When installating the new Nagios package in a CentOS Stream or AlmaLinux 10 container the nagios user and group is created after the dirs are created, causing /var/spool/nagios to be owned by root instead which means Nagios won't work. Not sure if this is caused by the sysusers.d magic or something else. Version-Release number of selected component (if applicable): 4.5.9 How reproducible: Always Steps to Reproduce: 1. Run container with `podman run --rm -it quay.io/centos/centos:stream10` then inside: 2. dnf install -y epel-release 3. dnf install nagios 4. nagios -v /etc/nagios/nagios.cfg Actual results: Warnings during installation and errors when running the config test Expected results: A normal running Nagios setup just like in Stream 9. Additional info: Logs during nagios installation: Installing : nagios-4.5.9-1.el10_1.x86_64 57/57 warning: group nagios does not exist - using root warning: group nagios does not exist - using root warning: group nagios does not exist - using root warning: user nagios does not exist - using root warning: group nagios does not exist - using root warning: user nagios does not exist - using root warning: group nagios does not exist - using root warning: user nagios does not exist - using root warning: group nagios does not exist - using root warning: user nagios does not exist - using root warning: group nagios does not exist - using root warning: user nagios does not exist - using root warning: group nagios does not exist - using root Running scriptlet: nagios-4.5.9-1.el10_1.x86_64 57/57 usermod: group 'nagios' does not exist Running scriptlet: httpd-2.4.63-1.el10.x86_64 57/57 Running scriptlet: fontconfig-2.15.0-7.el10.x86_64 57/57 Running scriptlet: nagios-4.5.9-1.el10_1.x86_64 57/57 Creating group 'nagios' with GID 996. Creating user 'nagios' (n/a) with UID 996 and GID 996. Executing config test: [root@2bd749b1b929 /]# nagios -v /etc/nagios/nagios.cfg Nagios Core 4.5.9 Copyright (c) 2009-present Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 2024-12-19 License: GPL Website: https://www.nagios.org Reading configuration data... Read main config file okay... Error: Cannot open config file '/etc/nagios/objects/commands.cfg' for reading: Permission denied Error processing object config files! ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data definitions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. Directories: [root@2bd749b1b929 /]# ls -la /etc/nagios total 68 drwxr-xr-x. 1 root root 74 Jun 12 04:47 . drwxr-xr-x. 1 root root 400 Jun 12 04:47 .. -rw-r--r--. 1 root root 13695 May 12 20:00 cgi.cfg -rw-r--r--. 1 root root 45665 May 12 20:00 nagios.cfg drwxr-x---. 1 root root 194 Jun 12 04:47 objects -rw-r-----. 1 root apache 27 May 12 20:00 passwd drwxr-x---. 1 root root 24 Jun 12 04:47 private [root@2bd749b1b929 /]# ls -la /var/spool/nagios/ total 0 drwxr-xr-x. 1 root root 30 Jun 12 04:47 . drwxr-xr-x. 1 root root 12 Jun 12 04:47 .. drwxr-x---. 1 root root 0 May 12 20:00 checkresults drwxr-xr-x. 1 root root 0 May 12 20:00 cmd