Subject: bug#45570: closed (Re: [PATCH v3] system: Assert, that user and group names are unique.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 11 Jan 2021 15:07:02 +0000

Your bug report

#45570: operating-system definitions allow duplicate passwd and group entries

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
45570: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45570
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [PATCH v3] system: Assert, that user and group names are unique.
From: Leo Prikler <[email-masked]>
To: Ludovic Courtès <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Mon, 11 Jan 2021 16:06:45 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Am Montag, den 11.01.2021, 14:09 +0100 schrieb Ludovic Courtès:
> Hi,
> 
> Leo Prikler <[email-masked]> skribis:
> 
> > *gnu/system/shadow.scm (find-duplicates): New variable.
> > (assert-unique-account-names, assert-unique-group-names): New
> > variables.
> > (account-activation): Use them here.
> 
> LGTM, thanks! :-)
> 
> Ludo’.
Aaaand it's pushed.

Subject: operating-system definitions allow duplicate passwd and group entries
From: Jason Conroy <[email-masked]>
To: [email-masked]
Date: Thu, 31 Dec 2020 13:14:19 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

When an operating-system contains multiple users or groups with the same
name, instantiating it with `guix system` does not cause a validation
failure, nor are the duplicate entries filtered from the resulting /etc
files.

This duplication can happen in a few different ways:

- both entries are manually included in the "users" or "groups" fields of
the operating-system
- a manually-specified entry collides with an entry defined by a service
(via an account-service-type extension)
- multiple services define entries that collide with each other

Steps to reproduce: call "guix system container" with the attached
operating-system definition.