Bug 182347 - Problem calling usermod in %post
Summary: Problem calling usermod in %post
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: nagios   
(Show other bugs)
Version: 4
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Mike McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-21 22:36 UTC by Andreas Thienemann
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-12-18 17:56:53 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

Description Andreas Thienemann 2006-02-21 22:36:45 UTC
You're calling usermod with the -a parameter.

When installing nagios on FC4, the following error presents itself:

Preparing...                ########################################### [100%]
   1:nagios                 ########################################### [100%]
/usr/sbin/usermod: invalid option -- a
usage: usermod  [-u uid [-o]] [-g group] [-G group,...]
                [-d home [-m]] [-s shell] [-c comment] [-l new_name]
                [-f inactive] [-e expire ] [-p passwd] [-L|-U] name

Comment 1 Mike McGrath 2006-02-22 07:31:19 UTC
What version of Shadow Utils are you running?

Comment 2 Andreas Thienemann 2006-02-22 11:12:49 UTC
shadow-utils-4.0.12-6.FC4, which should be current on FC4

Comment 3 Mike McGrath 2006-02-22 11:17:34 UTC
Hmm, thats what I've got too, what happens when you run the following command
(After installing Nagios)

usermod -a -G nagios apache

Comment 4 Mike McGrath 2006-03-11 16:17:18 UTC
Have you happend to had a chance to run this command?  Just following up :-D

Comment 5 Andreas Thienemann 2006-03-11 23:55:40 UTC
ohh. I could have sworn, I already posted the results. :-D

If the nagios group already exists, the group file is changed accordingly.
If the nagios group doesn't exist, the message "usermod: unknown group nagios"
is printed.

Very strange behaviour. What does the -a command do again?

Comment 6 Mike McGrath 2006-03-12 00:27:04 UTC
Just curious, was this an upgrade from a different version of nagios from a
different repository?  Nagios hasn't actually been in extras that long.

-a appends the user group combo instead of out right setting it.


Comment 7 Mike McGrath 2006-05-14 18:49:43 UTC
Have you had a chance to get back to this?  Are you still having this issue?

Comment 8 Mike McGrath 2006-06-26 22:52:31 UTC
Are you still experiencing this issue?

Comment 9 Andreas Thienemann 2006-06-27 00:14:55 UTC
Hmmm. Thx for the heads up. I haven't really looked into the issue the last months.

But I'm having to install nagios on RHEL4 in the near future.
I'll use the FE package for that.

Let's see how it goes. If all is well, I'll just close the bug.

Comment 10 Mike McGrath 2006-12-18 17:56:53 UTC
Haven't heard back, closing.


Note You need to log in before you can comment on or make changes to this bug.