What are the recommended permissions for the file "/usr/local/nagios/libexec/check_nrpe" ?
When installing using the linux-agent script (https://assets.nagios.com/downloads/nag ... ent.tar.gz) , it seems that it does the following:
Code: Select all
chmod 755 /usr/local/nagios/libexec/*
chown root:nagios /usr/local/nagios/libexec/*Code: Select all
# stat /usr/local/nagios/libexec/check_nrpe
File: `/usr/local/nagios/libexec/check_nrpe'
Size: 132384 Blocks: 264 IO Block: 4096 regular file
Device: 802h/2050d Inode: 7609249 Links: 1
Access: (0775/-rwxrwxr-x) Uid: ( 502/ nagios) Gid: ( 504/ nagios)
Access: 2018-08-08 19:23:58.419950791 +0200
Modify: 2018-08-08 19:12:12.494951418 +0200
Change: 2018-08-08 19:12:12.494951418 +0200
Owner: nagios
Group: nagios
Access: 775
What are the optimal permissions for "/usr/local/nagios/libexec/check_nrpe" in terms of security?
Thanks!