Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133127 - nagios-core modifies existing user
Summary: nagios-core modifies existing user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High major
Assignee: Eldad Zack (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 08:37 UTC by Christian Gut
Modified: 2006-05-12 13:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.