Essentially, it seems that nagios strips out supplementary group IDs. That is, I run the following in the terminal to reveal all the groups of the nagios user.
Code: Select all
$ sudo runuser -u nagios -- /usr/bin/id
uid=30(nagios) gid=30(nagios) groups=30(nagios),1050(media)
Code: Select all
uid=30(nagios) gid=30(nagios) groups=30(nagios)
What's odd is that even if I change the primary gid of nagios, hence in the terminal
Code: Select all
$ sudo runuser -u nagios -- id
uid=30(nagios) gid=1050(media) groups=1050(media),30(nagios)