spec file bug
SCHAER Frederic
frederic.schaer at cea.fr
Thu Nov 6 14:28:31 CET 2008
Hi,
I believe there’s a problem in nagios’s spec file.
I just downloaded latest 3.0.5 nagios release (spec file seems unchanged, so why is it said in release notes that there was a minor fix ?), and problem’s still there :
The spec file contains in the %post www section the following :
if [ "z" == "z$sgrps" ] ; then
sgrps=%{nsgrp}
else
sgrps=$sgrps,%{cmdgrp}
fi
# modify apache user, adding it to cmdgrp
/usr/sbin/usermod -G $sgrps $wwwusr >/dev/null 2>&1
But at the beginning of the spec file, we have :
%define nsgrp nagios
%define cmdgrp nagiocmd
So,
This results in apache being added :
- to nagios group if apache had no supplementary group at first. This prevents CGI commands from working, because cmd file is owned by nagios:nagioscmd
- to nagioscmd group if apache was member of other groups – CGIs work
Can the line “sgrps=%{nsgrp}” be changed to “sgrps=%{cmdgrp}” in future releases ?
Thanks && regards
Frederic Schaer
Tel. : +33 1 69 08 99 25
Fax : +33 1 69 08 31 47
CEA, IRFU, SEDI, Centre de Saclay, F-91191 Gif Sur Yvette, France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20081106/8bf6fb39/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list