From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 10 18:47:02 2025 Received: (at submit) by debbugs.gnu.org; 10 Mar 2025 22:47:03 +0000 Received: from localhost ([127.0.0.1]:40320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1trltm-0000tu-F0 for submit@debbugs.gnu.org; Mon, 10 Mar 2025 18:47:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56394) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1trltk-0000tX-30 for submit@debbugs.gnu.org; Mon, 10 Mar 2025 18:47:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1trlte-0004wM-2E for bug-guix@gnu.org; Mon, 10 Mar 2025 18:46:54 -0400 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1trltb-0003Kx-QT for bug-guix@gnu.org; Mon, 10 Mar 2025 18:46:53 -0400 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id 13DDC2540217 for ; Mon, 10 Mar 2025 18:46:48 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Mon, 10 Mar 2025 18:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm3; t=1741646807; x=1741733207; bh=9j/dolofu1 ar4GskpdDcuIzEf0jOaNKub56eZEAr0mo=; b=YGjQK20mlCYih6FPa6soSDQJYE VfNwWPtuYsjHsSL907KMrUJV7uZ2PNY4E+poeQhyHMFV9TaNtpMN9+eWlZ0ASUDY dE25UmwQ3MsnRC1wKcmhMcP1p1dOrYONnlUhAYMk47CBeBQnMdx+SoVrPOx3H277 pVXXkdtDFjvpZDhvNpdtRP2Qku2MKvBHfQmBsYsn9sEEFfGMyMIcqEAfgelUMXOb Tgy4mUumrgoy3FIR4RUJ599wPNjtavCrzqZHSruPLp6yfEL6P64+if9mLRZhfwUJ 8ALJ2BR10F16r4QSOZZqn8N8AMMH05A7jYOOXnQhjYWvjUe8yRMLkGCk/IVw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1741646807; x=1741733207; bh=9j/dolofu1ar4GskpdDcuIzEf0jOaNKub56 eZEAr0mo=; b=0Rvry/TgiWrVE6yAITB55EJCxL/rHMnD0Az5F0J8NAhbMqWNDvf C9bG2opL9tt+5OMKw2FNmATvO2oqe3eJ/bVkFp8QEkvg/aQPUvdYTguAoeiZ95ER DZAmBCQF2vbQocJF52a8uMocx5a6vaVgBbJLQUZhkqeWofSKu0zCvtLMOfwK4WN8 iHFy+ZFqKjosTIWKniXdgW7PNh8HaWr1W0T61oHcveK/2Y8fxp3f0FeQ9es0d+Kv ZB0/h3dBej1/xt60XnlYURt0Z5X+KY52NlRGm2azl0iIgJQFWOMA7YiF7/cvFXNb ro2yLMfk2YcI30M3cTzAyoVILt85tP5JYwg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddtheekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvf fufgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghn sehrvghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhepieeffeekkeegtedutd eiteegudefgedtieevueeftdeggefgjeeludevjeevvdejnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtgdrth hvpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegs uhhgqdhguhhigiesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 10 Mar 2025 18:46:47 -0400 (EDT) From: Ian Eure To: bug-guix@gnu.org Subject: User accounts are shared between system generations User-Agent: mu4e 1.12.9; emacs 29.4 Date: Mon, 10 Mar 2025 15:46:45 -0700 Message-ID: <874j00o65m.fsf@retrospec.tv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.155; envelope-from=ian@retrospec.tv; helo=fhigh-b4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Found this one on accident today and was surprised. To reproduce: - Remove your user account from your system configuration on=20 accident. - `sudo guix system reconfigure' - Realize your mistake. Observe that neither `su' nor `sudo'=20 work, because you don=E2=80=99t exist. - Reboot in a state of mild panic. - Select any previous system generation from GRUB. Expected result: previous generations should have the account=20 which was deleted, since it was declared in the configurations=20 which produced them. Actual result: They don=E2=80=99t. -- Ian From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 17 15:42:02 2025 Received: (at 76928) by debbugs.gnu.org; 17 Mar 2025 19:42:02 +0000 Received: from localhost ([127.0.0.1]:32807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tuGLZ-0000HW-Un for submit@debbugs.gnu.org; Mon, 17 Mar 2025 15:42:02 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:40290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tuGLY-0000H0-50 for 76928@debbugs.gnu.org; Mon, 17 Mar 2025 15:42:01 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0CFED3D7; Mon, 17 Mar 2025 20:41:51 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id ryvRI4ZhIzzK; Mon, 17 Mar 2025 20:41:50 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 018B7126; Mon, 17 Mar 2025 20:41:48 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ian Eure Subject: Re: bug#76928: User accounts are shared between system generations In-Reply-To: <874j00o65m.fsf@retrospec.tv> (Ian Eure's message of "Mon, 10 Mar 2025 15:46:45 -0700") References: <874j00o65m.fsf@retrospec.tv> Date: Mon, 17 Mar 2025 20:41:48 +0100 Message-ID: <87y0x3la0z.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 0CFED3D7 X-Spamd-Result: default: False [-6.10 / 15.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM(-3.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Action: no action X-Spamd-Bar: ------ X-Rspamd-Server: hera X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 76928 Cc: 76928@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, Ian Eure skribis: > Found this one on accident today and was surprised. To reproduce: > > - Remove your user account from your system configuration on > accident. > - `sudo guix system reconfigure' > - Realize your mistake. Observe that neither `su' nor `sudo' work, > because you don=E2=80=99t exist. > - Reboot in a state of mild panic. > - Select any previous system generation from GRUB. > > Expected result: previous generations should have the account which > was deleted, since it was declared in the configurations which > produced them. > > Actual result: They don=E2=80=99t. Are you sure? /etc/{shadow,passwd,group} are created at activation time, meaning when booting or reconfiguring (see =E2=80=98account-activatio= n=E2=80=99, which returns code that calls =E2=80=98activate-users+groups=E2=80=99, the = procedure that creates those files). Thanks, Ludo=E2=80=99.