On 2023/05/24 20:00, Omar Polo wrote:
> On 2023/05/19 10:24:58 -0600, Todd C. Miller <[email protected]> wrote:
> > If /etc/usermgmt.conf has a line like:
> > 
> >     group   =uid
> > 
> > where a new user's group ID in the passwd file is the same as their
> > user ID, remove that group when the user is removed.  The group is
> > only removed if it matches the login name, has a gid that matches
> > the user's uid, and has no other members.
> > 
> > This makes our userdel(8) behave more like the version on other
> > systems.
> > 
> > Opinions?  This is something that has always bothered me and can
> > result in uid/gid mismatches if you remove a user, then re-add them
> > without removing the login group first.
> 
> I have been bitten by this too and later been (pleasently) surprised
> when found that on other systems removing a users removes the group
> too.  It makes sense to me.
> 
> > Thoughts or strong opinions?
> 
> fwiw i like the change, ok for me.

+1

> As Aisha pointed out, pkg_delete hints could be updated too.

If that is done, pkg_delete would need to check whether the group will
actually get removed i.e. make sure that no other user has been added
to the group.

Reply via email to