It was discovered that Nagios did not properly parse certain commands
submitted using the WAP web interface. An authenticated user could exploit
this flaw and execute arbitrary programs on the server.
a partner mine install nagios on ubuntu, without errors.
so I´m trying continue the installation but can´t see 3 last directories /usr/local/nagios/bin/nagios.
I can get it just on /etc/nagios.
I need that, because a when I try execute /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
a error -bash: /usr/local/nagios/bin/nagios: No such file or directory appears.
I wrote a Nagios check script which checks if user peeradmin is able to touch a file in some mount on the server.
Nagios user is: nagios .
I've edited /etc/sudoers and added these lines but none worked:
nagios ALL=NOPASSWD: /bin/su - peeradmin -c /bin/touch
nagios ALL=(peeradmin) NOPASSWD: /bin/su
nagios ALL=(peeradmin) NOPASSWD: /bin/su - peeradmin
But still, while logged in as nagios use