Debian Bug report logs - #1014444
need rollback mechanism in case of aborts

version graph

Package: adduser; Maintainer for adduser is Debian Adduser Developers <[email protected]>; Source for adduser is src:adduser (PTS, buildd, popcon).

Reported by: Marc Haber <[email protected]>

Date: Wed, 6 Jul 2022 09:00:02 UTC

Severity: normal

Tags: help

Found in version adduser/3.121

Blocking fix for 1005942: adduser: spews error when ^Ding out of binary question, proceeds anyway, 630643: adduser: Cancelling with Ctrl+C still adds entries to /etc/{passwd,group}

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Adduser Developers <[email protected]>:
Bug#1014444; Package adduser. (Wed, 06 Jul 2022 09:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Haber <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Adduser Developers <[email protected]>. (Wed, 06 Jul 2022 09:00:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Marc Haber <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: need rollback mechanism in case of aborts
Date: Wed, 06 Jul 2022 10:56:27 +0200
Package: adduser
Version: 3.121
Severity: normal

Hi,

this is material for one of the next development rounds _after_ the
policy issues (especially everything around locking accounts) has been
cleared.

If adduser is aborted for some reason (for example, a lock not being
available in time, see #983405), we leave the system in some kind of
inconclusive state, such as groups having been created but accounts not
etc. So we should try to roll back the system to the state that it was
before we got invoked.

I think the easiest way would be that we have a list of commands to be
used in case of premature abort, and insert the opposite of any command
that we have executed successfully into that list. If we abort, we just
execute everthing that is in this list. If we end with success, the list
doesnt get executed.

Greetings
Marc



Added indication that bug 1014444 blocks 1005942 Request was from Marc Haber <[email protected]> to [email protected]. (Tue, 29 Oct 2024 11:18:02 GMT) (full text, mbox, link).


Added indication that bug 1014444 blocks 630643 Request was from Marc Haber <[email protected]> to [email protected]. (Tue, 29 Oct 2024 11:24:02 GMT) (full text, mbox, link).


Added tag(s) help. Request was from Marc Haber <[email protected]> to [email protected]. (Tue, 29 Oct 2024 11:33:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 09:17:44 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.