Bug#295416: [Pkg-shadow-devel] Bug#295416: Could we propose a patch for the "userdel should not remove the group which is primary for someone else" bug ?

Christian Perrier bubulle at debian.org
Sat Oct 1 17:12:09 UTC 2005


> The attached patch do not really fix this, but can be used as a basis.
> 
> I think we all agree that the user must be warned, don't we?

Sure

> 
> The problem is shall we remove the group or not? Do we need a special
> return value?

We shouldn't remove the group because this would induce
inconsistencies in users databases.


> What should the warning tell? Currently:
>     Warning: The primary group of bug295416 (bug295416, GID=1003)
>     will be removed, but is also the primary group of other295416
>     (ID=1002).

"Cannot remove group %s which is a primary group for another user"

And a dedicated exit code (not sure about this as this could break
some utilities relying on non zero exit code to check that the user
has indeed been removed)








More information about the Pkg-shadow-devel mailing list