From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QBS9B/GqeWCCtwAAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 17:19:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2G6yAfGqeWAqFAAA1q6Kng (envelope-from ) for ; Fri, 16 Apr 2021 15:19:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7854A1A037 for ; Fri, 16 Apr 2021 17:19:12 +0200 (CEST) Received: from localhost ([::1]:36168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXQFT-0008FF-Bf for larch@yhetil.org; Fri, 16 Apr 2021 11:19:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXQFL-0008Ev-Ow for bug-guix@gnu.org; Fri, 16 Apr 2021 11:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXQFJ-0002aj-VI for bug-guix@gnu.org; Fri, 16 Apr 2021 11:19:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXQFJ-00025p-Rr for bug-guix@gnu.org; Fri, 16 Apr 2021 11:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#36508: GDM files have incorrect owner after temporarily removing service Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 16 Apr 2021 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36508 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver Received: via spool by 36508-submit@debbugs.gnu.org id=B36508.16185862967991 (code B ref 36508); Fri, 16 Apr 2021 15:19:01 +0000 Received: (at 36508) by debbugs.gnu.org; 16 Apr 2021 15:18:16 +0000 Received: from localhost ([127.0.0.1]:41435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXQEZ-00024o-PQ for submit@debbugs.gnu.org; Fri, 16 Apr 2021 11:18:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXQEX-00024b-Mn for 36508@debbugs.gnu.org; Fri, 16 Apr 2021 11:18:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42068) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXQES-0002Dg-HG; Fri, 16 Apr 2021 11:18:08 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39092 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXQES-0001y5-23; Fri, 16 Apr 2021 11:18:08 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190705083620.lbzu7a33awbymh3d@cf0> <1576552162.14721.1618320275616@office.mailbox.org> <87czuxsya5.fsf@netris.org> <875z0pgnqn.fsf@gnu.org> <87lf9jiems.fsf@netris.org> <878s5j8ga7.fsf@gnu.org> <87zgxzgpbf.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Germinal an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 16 Apr 2021 17:18:06 +0200 In-Reply-To: <87zgxzgpbf.fsf@netris.org> (Mark H. Weaver's message of "Thu, 15 Apr 2021 18:22:49 -0400") Message-ID: <87tuo645sh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Brendan Tildesley , 36508@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618586352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=279ur9XADgXGov/gRxePeNGoMrBiVO3AV33jp4RiMjI=; b=Z2vweGjbM2ViQErMqf7pSH+1BZrownD5Y1Q5pAxpquOKgsIXa1Sp9iym/kJyT7X4Rvz6aV o1jMY/1bwpvwLic3X21Nv0on+QIM2pCsDTfg/oDT3cmCX37RwEqc+v/7i7IMAQDin6MaLo IBoFmLU4NVDAH+9hBCQh9LcVNmBny0VGqi5+dJtjKKwtI62fWbGb6fE2YdHKeyn4f8LuxS 73N4AL7po+pqwW3XtguS+Dvf6kLptyHIkxQYg+GIQeINQj7+lxhicVzK3KzRHLTaeMvoS0 UB+7Xp+GjcCrRyZloMqeXnBYCTstY5mkw8VLwPfHFNig9g5+zXhSu0uSkR8Z1g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618586352; a=rsa-sha256; cv=none; b=OkHBn5aUqcEVPyxEAmtoT/+GGc5oStR41ihC6+PEHTvHsqpqMJds5qYic58ZWHHocXnNXT LivZwuFcfihqm/u2bR4CHDn+JEZPN8Xh0gyN0XZsYn24oH4ZWLdSof7XAu+fwmApT4vYp2 WtB/9Pc3gxNy2lhDBLrtx0Dad9cRXnGg77pPX0IWUd54ny/QMBVwyl7yPrEsHOhaObcNxy 2unf0GX7EhTz+jb/hpMixKkqaYWHU6Vb1bZDlyvcZT4xu2zdBoXO/XRI5V4PSGhYXA2YVZ 3/6tWgaDZwv7d2KCJGdoxRfPVfeZLMwRrtHYOx1n/O6Q+3zGDTqVS5OB4xjFKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.94 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 7854A1A037 X-Spam-Score: -2.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: aA5AqS5eavad Hi, Mark H Weaver skribis: > It's true that if you delete a user or group on another distro and then > re-add it, it might not be assigned the same UID/GID. That much is the > same as any other distro. > > The key difference is this: On Debian, at least in my experience, users > and groups are *never* deleted automatically. They are only added > automatically, but never removed unless you explicitly ask to remove > them. So, this problem does not arise in practice. >> Maintain historical mappings from user/group names to UIDs/GIDs, perhaps >> in some file in /etc, where entries are added but *never* automatically >> removed. When allocating UIDs/GIDs, we would avoid any UIDs/GIDs in the >> range of those mappings. If we=E2=80=99re just worried about ID allocation, we could keep state in, = say, /etc/previous-uids, and feed that as input to the (gnu build accounts) allocation code. Thoughts? Maxime Devos skribis: > This seems rather convoluted to me. Why not reuse /etc/passwd and /etc/g= roups? > My suggestion: > > 1. *never* automatically delete users/groups from /etc/passwd, /etc/groups > (I thought that was how Guix already worked ...) > 2. as users and groups appearing in /etc/passwd and /etc/groups, but not > in the operating system configuration can be confusing, change the com= ment > string of these users and groups, to something like > > "account removed" > > Add a group 'user-graveyard' for (3), and move these 'pseudo-removed' = users > to the 'user-graveyard' group. > 3. Don't forget to remove graveyard users from all groups (except user-gr= aveyard), > make sure the graveyard users can't log in anymore ... (Perhaps add a = rule to > the SSH and PAM configuration that forbids logging in to graveyard acc= ounts, > by checking whether the user is in the 'user-graveyard' group?) Problem is that things like GDM would still propose those old accounts (unless maybe their password is uninitialized, I=E2=80=99m not sure; but it= =E2=80=99s still hacky.) Thanks, Ludo=E2=80=99.