I could not get reason of Warning messages I am getting in /var/log/messages:
Apr 10 03:41:23 lsv-vm203 nrpe[85287]: Warning: Could not set effective GID=994
Apr 10 03:41:23 lsv-vm203 nrpe[85287]: Warning: Unable to change supplementary groups using initgroups()
Apr 10 03:41:23 lsv-vm203 nrpe[85287]: Warning: Could not set UID=997
Here is config I have:
# grep -E "nagios|nrpe" /etc/passwd
nagios:x:997:994::/var/spool/nagios:/bin/bash
nrpe:x:515:515:NRPE user for the NRPE service:/var/run/nrpe:/sbin/nologin
# grep -E "nagios|nrpe" /etc/group
nagios:x:994:apache,nrpe
nrpe:x:515:
# cat /etc/systemd/system/nrpe.service.d/override.conf
[Service]
User=nrpe
Group=nrpe
# ps auxw | grep -E "^nrpe"
nrpe 37083 0.0 0.0 57776 2920 ? Ss Feb23 2:13 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f
I have no idea why nrpe is trying to set UID:GID to 997:994 (which is UID:GID of nagios user).
I am running Centos 7.9.2009
Although it does not affect anything (at least I could not see any issues), I do not like to keep it like this. Much appreciate for any ideas around it.
nrpe had different UID:GUI configuration for systemd and in the nrpe.conf:
So it had collision