Bug 49609 - usermod/groupmod lack ability to add a user to a group w/o removing from other groups
Summary: usermod/groupmod lack ability to add a user to a group w/o removing from othe...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-21 15:31 UTC by Wayne Pollock
Modified: 2007-04-18 16:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-06 08:24:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Wayne Pollock 2001-07-21 15:31:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (Win98; U)

Description of problem:
There seems no way to add a user "user" as a member of the group "grp", without removing user
from all other groups.  by editing the /etc/group file directly the user can be added.  But
"usermod -G grp user" will remove user from all other groups.  There is no option for
groupmod command to add a user to a group, a logical place for such an option.

How reproducible:
Always

Steps to Reproduce:
1.usermod -G grp1 user
2.usermod -G grp2 user
	

Additional info:

It is important to be able to script user additions and changes such as group membership.

Comment 1 Louie Hannen 2002-09-12 16:48:08 UTC
In migrating 2000+ users from OS/2 servers to Linux servers, I've run into this
same problem. It makes scripting mass user/group changes more complicated than
it should be in some situations. This feature addition would be well received by
my team.

Comment 2 Peter Vrabec 2005-09-06 08:24:35 UTC
fixed in shadow-utils >= 4.0.12.
$usermod -a -G grp1 user


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