Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133127

Summary: nagios-core modifies existing user
Product: Gentoo Linux Reporter: Christian Gut <cycloon>
Component: New packagesAssignee: Eldad Zack (RETIRED) <eldad>
Status: RESOLVED FIXED    
Severity: major CC: ramereth
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Gut 2006-05-12 08:37:55 UTC
I had nagios running and need the "nagios" user beeing member of the group sms (for sending notifications via sms). The ebuild calls usermod regardless if the user existed before the ebuild. Instead of doing this, it better should call enewuser correctly. Changing the existing settings is really bad.

I propose either the following patch:

--- nagios-core-1.4.ebuild~     2006-05-07 22:36:38.000000000 +0200
+++ nagios-core-1.4.ebuild      2006-05-12 17:32:32.000000000 +0200
@@ -45,8 +45,7 @@
        if use noweb; then
                enewuser nagios -1 /bin/bash /dev/null nagios
        else
-               enewuser nagios -1 /bin/bash /dev/null apache
-               usermod -G apache nagios
+               enewuser nagios -1 /bin/bash /dev/null apache,nagios
        fi
 }
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2006-05-12 12:51:39 UTC
Yep, you seem to be right.

I'll get it to CVS.
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2006-05-12 13:32:39 UTC
in CVS, thanks for reporting.