Bug 1916 - userdel doesn't delete user private group any more
userdel doesn't delete user private group any more
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-03-31 11:05 EST by Michael K. Johnson
Modified: 2015-01-07 18:36 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-03-31 23:18:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael K. Johnson 1999-03-31 11:05:23 EST
userdel used to delete user private groups if they had
the same name as the user, but it does not seem to do
that now.
Comment 1 Cristian Gafton 1999-03-31 11:33:59 EST
I don't think it ever used to do that. That is what groupdel does.
Comment 2 Michael K. Johnson 1999-03-31 11:39:59 EST
useradd adds user private groups.  userdel should delete them.
groupadd adds other groups.  groupdel should be used to delete
those.  But automagically added groups should be automagically
deleted.

If userdel never did that (I'll have to check) then it is a bug,
as we agreed long ago that it should...
Comment 3 Michael K. Johnson 1999-03-31 14:38:59 EST
useradd adds user private groups.  userdel should delete them.
groupadd adds other groups.  groupdel should be used to delete
those.  But automagically added groups should be automagically
deleted.

If userdel never did that (I'll have to check) then it is a bug,
as we agreed long ago that it should...
Comment 4 Michael K. Johnson 1999-03-31 14:42:59 EST
OK, userdel needs to have a command-line option to call groupdel
(it currently doesn't seem to)
Comment 5 Preston Brown 1999-03-31 17:31:59 EST
michael, can you handle this?
Comment 6 Michael K. Johnson 1999-03-31 23:18:59 EST
Fixed in shadow-utils-980403-9
userdel now removes the user's primary group IFF
 o the group name and and the user name are the same
 o no other user has the same primary group id
 o no other users are listed in the group list for the primary group

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