I misstyped and entered this command.
sudo chmod -R -755 /usr/local/nagios/libexec/*
Now it seems like the normal user "nagios" can not see any files in this folder. But the user is owner and the rights on 777.
drwxr-xr-x 2 nagios nagios 4096 Apr 30 17:43 libexec
But when I try to execute the file:
/usr/local/nagios/libexec/check_nrpe
-bash: /usr/local/nagios/libexec/check_nrpe: No such file or directory
The file did have this rights:
-rwxrwxrwx 1 nagios nagios 63845 Apr 30 17:43 check_nrpe
You have completely removed the read and executable rights for groups and others and all rights for the owner for all files and folders in
/usr/local/nagios/libexec/
but not for/usr/local/nagios/libexec/
itself.It can no longer be ascertained, as the rights actually denominated. This command makes it reversed, but it may be that too many rights are then assigned.