46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
From: Balint Reczey <balint@balintreczey.hu>
|
|
Description: Keep using Debian's adduser defaults
|
|
Upstream's bbf4b79bc49fd1826eb41f6629669ef0b647267b commit
|
|
in 4.9 merged those values from upstream's default configuration file
|
|
which is not shipped in Debian.
|
|
This patch keeps the program's compiled in defaults in sync with the
|
|
configuration files shipped in Debian (debian/default/useradd).
|
|
Bug: https://github.com/shadow-maint/shadow/issues/501
|
|
Bug-Debian: https://bugs.debian.org/1004710
|
|
Forwarded: not-needed
|
|
|
|
Index: shadow/src/useradd.c
|
|
===================================================================
|
|
--- shadow.orig/src/useradd.c
|
|
+++ shadow/src/useradd.c
|
|
@@ -90,14 +90,14 @@ static const char Prog[] = "useradd";
|
|
/*
|
|
* These defaults are used if there is no defaults file.
|
|
*/
|
|
-static gid_t def_group = 1000;
|
|
+static gid_t def_group = 100;
|
|
static const char *def_groups = "";
|
|
static const char *def_gname = "other";
|
|
static const char *def_home = "/home";
|
|
static const char *def_shell = "/bin/bash";
|
|
static const char *def_template = SKEL_DIR;
|
|
static const char *def_usrtemplate = USRSKELDIR;
|
|
-static const char *def_create_mail_spool = "yes";
|
|
+static const char *def_create_mail_spool = "no";
|
|
static const char *def_log_init = "yes";
|
|
|
|
static long def_inactive = -1;
|
|
Index: shadow/man/useradd.8.xml
|
|
===================================================================
|
|
--- shadow.orig/man/useradd.8.xml
|
|
+++ shadow/man/useradd.8.xml
|
|
@@ -248,7 +248,7 @@
|
|
command line), useradd will set the primary group of the new
|
|
user to the value specified by the <option>GROUP</option>
|
|
variable in <filename>/etc/default/useradd</filename>, or
|
|
- 1000 by default.
|
|
+ 100 by default.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|