GNU bug report logs

#76928 User accounts are shared between system generations

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to bug-guix@gnu.org:
bug#76928; Package guix. (Mon, 10 Mar 2025 22:47:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ian Eure <ian@retrospec.tv>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org. (Mon, 10 Mar 2025 22:47:04 GMT) (full text, mbox, link).


Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

From: Ian Eure <ian@retrospec.tv>
To: bug-guix@gnu.org
Subject: User accounts are shared between system generations
Date: Mon, 10 Mar 2025 15:46:45 -0700
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’t 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’t.

 -- Ian




Information forwarded to bug-guix@gnu.org:
bug#76928; Package guix. (Mon, 17 Mar 2025 19:43:02 GMT) (full text, mbox, link).


Message #8 received at 76928@debbugs.gnu.org (full text, mbox, reply):

From: Ludovic Courtès <ludo@gnu.org>
To: Ian Eure <ian@retrospec.tv>
Cc: 76928@debbugs.gnu.org
Subject: Re: bug#76928: User accounts are shared between system generations
Date: Mon, 17 Mar 2025 20:41:48 +0100
Hi,

Ian Eure <ian@retrospec.tv> 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’t 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’t.

Are you sure?  /etc/{shadow,passwd,group} are created at activation
time, meaning when booting or reconfiguring (see ‘account-activation’,
which returns code that calls ‘activate-users+groups’, the procedure
that creates those files).

Thanks,
Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Wed Apr 16 03:55:33 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.