Bug 578746

Summary: --append option not working in usermod
Product: Red Hat Enterprise Linux 4 Reporter: Miroslav Vadkerti <mvadkert>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: mvyynqbgerqungqbgpbz.yeuhc
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 222540 Environment:
Last Closed: 2010-07-23 11:36:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 222540    
Bug Blocks:    

Description Miroslav Vadkerti 2010-04-01 09:06:20 UTC
+++ This bug was initially created as a clone of Bug #222540 +++

Description of problem:
The --append long option does not seem to work at all.  The equivelent -a option
does work.  I'm leaving this as normal severity rather than low

Version-Release number of selected component (if applicable):
shadow-utils-4.0.3-66.RHEL4.1

How reproducible:
every time

Steps to Reproduce:
1. groupadd -r sound 
2. usermod -a -G sound mikedlr
3. usermod --append -G sound mikedlr
4. usermod -a -G sound mikedlr  

Actual results:
the second and fourth command complete correctly and silently.  The third step
outputs the usage information from usermod 

Expected results:
according to manual page and usermod --help, --append option should do the same
as -a

Additional info:
I'm leaving this as normal severity since an important script might be depending
on this.

--- Additional comment from mvyynqbgerqungqbgpbz.yeuhc on 2007-01-13 12:01:19 EST ---

Created an attachment (id=145529)
actual session showing usermod failing to work

--- Additional comment from pvrabec on 2007-01-14 08:39:00 EST ---

fixed in shadow-utils-4.0.17-12.fc6

Comment 1 Peter Vrabec 2010-07-23 11:36:36 UTC
There are no long options for usermod in shadow-utils-4.0.3 at all. This behaviour is correct.