Bug#295416: [Pkg-shadow-devel] Bug#295416: Deleting a user group in userdel should only be done if the group is empty

Alexander Gattin Alexander Gattin <arg@online.com.ua>, 295416@bugs.debian.org
Mon, 18 Apr 2005 22:25:17 +0300


Hi!

On Mon, Apr 18, 2005 at 06:30:28PM +0200, Christian Perrier wrote:
> However, if for some (good or bad) reason, the suer groups has other
> members than the currently deleted user, I agree with the bug
> submitterš: userdel should at least issue a warning....or maybe even
> *not* delete the group (and issue an "error" message).

IMHO it should be researched where/how is userdel
used/scripted.

Although generally I prefer early abort/failure,
it seems more appropriate to delete user anyway, just
keep the group when there are other members in it
(and complain to stderr/syslog).

-- 
WBR,
xrgtn