Bug 147742 - useradd -G corrupts /etc/gshadow line for the group
Summary: useradd -G corrupts /etc/gshadow line for the group
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-10 21:45 UTC by john.l.villalovos
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-02-25 15:41:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fixed maxmem.patch from Mogens Kjaer (mk@crc.dk) (1.63 KB, patch)
2005-02-25 15:40 UTC, Peter Vrabec
no flags Details | Diff

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.


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