check_disk: Permission denied redux II
Posted: Tue May 26, 2020 3:03 am
I was having two separate discussions that have since been closed… so here is the continuation. As background, I was having permission issues with an unofficial plugin. However, after some troubleshooting, we suspect it's a bug in nagios itself.
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.
However, when I run the command through nagios, the GUI shows me
The secondary group is missing, hence nagios complains of permission errors when attempting to access directories owned by media.
What's odd is that even if I change the primary gid of nagios, hence in the terminal
Nagios's GUI still reports the gid incorrectly as the old nagios, not the new media.
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)