Package: adduser
Version: 3.121

Adduser's postinst script creates /etc/adduser.conf.dpkg-save file on
debootstrap's root filesystem, that is, even if /etc/adduser.conf
doesn't exist prior to package installation.

$ sudo debootstrap sid debian-root/ http://deb.debian.org/debian/
...
$ sudo chroot debian-root/ /bin/bash
# dpkg -s adduser|grep Version:
Version: 3.121
# ls -l /etc/adduser.conf*
-rw-r--r-- 1 root root 3185 Jun  8 09:31 /etc/adduser.conf
-rw-r--r-- 1 root root 3171 Jun  8 09:31 /etc/adduser.conf.dpkg-save
# diff -u /etc/adduser.conf*
--- /etc/adduser.conf   2022-06-08 09:31:37.278453722 +0000
+++ /etc/adduser.conf.dpkg-save 2022-06-08 09:31:37.278453722 +0000
@@ -86,4 +86,3 @@
 
 # check user and group names also against this regular expression.
 #NAME_REGEX="^[a-z][-a-z0-9_]*$"
-DIR_MODE=0755

The .dpkg-save file shouldn't be present on debootstrapped system.

I believe this is caused by commit 9cef72b09[1].

First reported in Ubuntu[2].

[1] https://salsa.debian.org/debian/adduser/-/commit/9cef72b09
[2] https://bugs.launchpad.net/ubuntu/+source/adduser/+bug/1977710

Reply via email to