Bug 147742

Summary: useradd -G corrupts /etc/gshadow line for the group
Product: [Fedora] Fedora Reporter: john.l.villalovos
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-25 15:41:15 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:
Attachments:
Description Flags
fixed maxmem.patch from Mogens Kjaer (mk@crc.dk) none

Description john.l.villalovos 2005-02-10 21:45:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217

Description of problem:
Doing a useradd -G command and the group line specified becomes corrupted.


Version-Release number of selected component (if applicable):
shadow-utils-4.0.3-56

How reproducible:
Always

Steps to Reproduce:
1.  useradd -G build whack


Actual Results:  Examine /etc/gshadow

Notice the "build" group line appears to be corrupted with the list of users in the group.

build:!::,!,,,,,,!,,,!,,,,,,,,,,whack

Expected Results:  Should be:

build:!::whack

Additional info:

Comment 1 Peter Vrabec 2005-02-18 10:02:14 UTC
I can't reproduce it.
Why do u use release 56. I thought there is release #37 in fc3?

$rpm -qi shadow-utils
Name        : shadow-utils                 Relocations: (not relocatable)
Version     : 4.0.3                             Vendor: (none)
Release     : 57                            Build Date: Fri 18 Feb 2005 09:48:26 
# useradd -G rat Dezo
# cat /etc/gshadow | grep Dezo
rat:!::Dezo
Dezo:!::


Comment 2 Peter Vrabec 2005-02-18 15:25:18 UTC
I think i have already fount it. There must be a bug somewhere in
shadow-4.0.3-maxmem.patch. Release #57(from devel) doesn't include this patch,
that was the reason it has worked for me.


Comment 3 Peter Vrabec 2005-02-25 15:40:17 UTC
Created attachment 111424 [details]
fixed maxmem.patch from Mogens Kjaer (mk)

Comment 4 john.l.villalovos 2005-02-25 18:40:26 UTC
Will this be added as an update for Fedora Core 3?  I hope so.