[Pkg-shadow-devel] Bug#584868: Bug#584868: passwd: userdel removes the group with the same name as 'username'
mteodor at gmail.com
Mon Jun 7 20:18:40 UTC 2010
On Mon, Jun 7, 2010 at 8:20 PM, Christian PERRIER <bubulle at debian.org> wrote:
> My first reaction to this is: "does it hurt hard when you shoot
> yourself in the foot?"
We'll I didn't noticed anything that bad .. :-)
> Indeed, creating users with the same username than a system group
> *and* making their primary group this system group *and* doing that
> without adduser (if you try to create the "staff" user with adduser, you'll be
> warned that "adduser: The group `staff' already exists.").....is
> a good way to create problems.
Well, I guess you mised the part where the custom user 'staff' (by
custom I mean created manually by me) does _not_ have the primary
group 'staff' but a custom group 'partners' (ID=1000) thus these two
are only related by the same name. My point is that 'userdel' must not
try to delete a group that has the same name as the user being deleted
_unless_ there is no other user belonging to this UPG.
> Maybe Nicolas swill have another interpretation, we'll see..:-)
I hope it's more clear for anyone now. Probably I didn't express
myself too clear, english is not my primary language.
More information about the Pkg-shadow-devel