Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1092716
| From | Bálint Réczey <balint@balintreczey.hu> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1004710: [Pkg-shadow-devel] Bug#1004710: passwd: 4.11.1 breaks mmdebstrap testsuite by empty directories in /var/mail and /var/spool/mail |
| Date | 2022-02-10 23:00 +0100 |
| Message-ID | <DPpDP-Wma-3@gated-at.bofh.it> (permalink) |
| References | <DLOr7-1Dk-1@gated-at.bofh.it> <DMaBj-6Ov-5@gated-at.bofh.it> <DPcdz-OhK-3@gated-at.bofh.it> <DLOr7-1Dk-1@gated-at.bofh.it> <DPcdz-OhK-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Control: reassign -1 adduser 3.118
Control: retitle -1 adduser: Please pass "-r" to useradd when creating
system users
Control: tags -1 patch
Hi Johannes,
Johannes Schauer Marin Rodrigues <josch@debian.org> ezt írta (időpont:
2022. febr. 10., Cs, 8:39):
>
> Hi Bálint,
>
> Quoting Bálint Réczey (2022-02-02 00:10:00)
> > > Is the creation of these empty directories intended?
> >
> > I'm not sure yet.
> >
> > > Do you have an explanation why they are only created with debootstrap?
> >
> > Not yet, but thank you for the bug report.
>
> thank you for looking into it! Did you already find out something? The
> mmdebstrap autopkgtests have now been broken for 10 days.
Sorry for the delay, I tried bumping the severity to buy myself some time.
It seems this is an adduser bug and the following patch fixes it:
--- adduser.orig 2018-09-15 21:12:39.000000000 +0200
+++ adduser 2022-02-10 22:27:05.759922091 +0100
@@ -434,7 +434,7 @@
$shell = $special_shell || '/usr/sbin/nologin';
$undouser = $new_name;
my $useradd = &which('useradd');
- &systemcall($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
+ &systemcall($useradd, '-r', '-d', $home_dir, '-g', $ingroup_name, '-s',
$shell, '-u', $new_uid, $new_name);
if(!$disabled_login) {
my $usermod = &which('usermod');
Apparently useradd correctly guessed system user ranges in the past,
but this is not something to rely on.
Cheers,
Balint
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1004710: passwd: 4.11.1 breaks mmdebstrap testsuite by empty directories in /var/mail and /var/spool/mail Johannes Schauer Marin Rodrigues <josch@debian.org> - 2022-02-01 00:40 +0100
Bug#1004710: [Pkg-shadow-devel] Bug#1004710: passwd: 4.11.1 breaks mmdebstrap testsuite by empty directories in /var/mail and /var/spool/mail Bálint Réczey <balint@balintreczey.hu> - 2022-02-02 00:20 +0100
Bug#1004710: [Pkg-shadow-devel] Bug#1004710: passwd: 4.11.1 breaks mmdebstrap testsuite by empty directories in /var/mail and /var/spool/mail Johannes Schauer Marin Rodrigues <josch@debian.org> - 2022-02-10 08:40 +0100
Bug#1004710: [Pkg-shadow-devel] Bug#1004710: passwd: 4.11.1 breaks mmdebstrap testsuite by empty directories in /var/mail and /var/spool/mail Bálint Réczey <balint@balintreczey.hu> - 2022-02-10 23:00 +0100
Bug#1004710: Please pass "-r" to useradd when needed Johannes Schauer Marin Rodrigues <josch@debian.org> - 2022-02-11 00:00 +0100
Bug#1004710: Please pass "-r" to useradd when needed Marc Haber <mh+debian-packages@zugschlus.de> - 2022-02-21 12:40 +0100
Bug#1004710: Please pass "-r" to useradd when needed Johannes Schauer Marin Rodrigues <josch@debian.org> - 2022-02-11 07:30 +0100
Bug#1004710: Please pass "-r" to useradd when needed Marc Haber <mh+debian-packages@zugschlus.de> - 2022-02-11 15:40 +0100
Bug#1004710: Please pass "-r" to useradd when needed Bálint Réczey <balint@balintreczey.hu> - 2022-02-11 16:30 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Ricardo Fraile <rfraile@rfraile.eu> - 2022-02-13 16:10 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Jason Franklin <jason@oneway.dev> - 2022-02-13 18:20 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Marc Haber <mh+debian-packages@zugschlus.de> - 2022-02-13 18:20 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Jason Franklin <jason@oneway.dev> - 2022-02-13 18:40 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Marc Haber <mh+debian-packages@zugschlus.de> - 2022-02-13 19:30 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Ricardo Fraile <rfraile@rfraile.eu> - 2022-02-20 10:20 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Marc Haber <mh+debian-packages@zugschlus.de> - 2022-02-22 15:10 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Daniel Lewart <lewart3@gmail.com> - 2022-02-25 09:50 +0100
Bug#1004710: Invoke "useradd -r" when creating a system user Jason Franklin <jason@oneway.dev> - 2022-02-26 22:10 +0100
csiph-web