1 diff -urpa shadow-4.8.orig/libmisc/find_new_gid.c shadow-4.8/libmisc/find_new_gid.c
2 --- shadow-4.8.orig/libmisc/find_new_gid.c 2019-10-13 04:52:08.000000000 +0200
3 +++ shadow-4.8/libmisc/find_new_gid.c 2019-12-15 23:40:29.745000000 +0100
4 @@ -61,8 +61,8 @@ static int get_ranges (bool sys_group, g
5 /* A requested ID is allowed to be below the autoselect range */
6 *preferred_min = (gid_t) 1;
8 - /* Get the minimum ID range from login.defs or default to 101 */
9 - *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL);
10 + /* Get the minimum ID range from login.defs or default to 10 */
11 + *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL);
14 * If SYS_GID_MAX is unspecified, we should assume it to be one
15 diff -urpa shadow-4.8.orig/libmisc/find_new_uid.c shadow-4.8/libmisc/find_new_uid.c
16 --- shadow-4.8.orig/libmisc/find_new_uid.c 2019-10-13 04:52:08.000000000 +0200
17 +++ shadow-4.8/libmisc/find_new_uid.c 2019-12-15 23:40:29.746000000 +0100
18 @@ -61,8 +61,8 @@ static int get_ranges (bool sys_user, ui
19 /* A requested ID is allowed to be below the autoselect range */
20 *preferred_min = (uid_t) 1;
22 - /* Get the minimum ID range from login.defs or default to 101 */
23 - *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL);
24 + /* Get the minimum ID range from login.defs or default to 1 */
25 + *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL);
28 * If SYS_UID_MAX is unspecified, we should assume it to be one
29 diff -urpa shadow-4.8.orig/src/useradd.c shadow-4.8/src/useradd.c
30 --- shadow-4.8.orig/src/useradd.c 2019-12-01 17:52:32.000000000 +0100
31 +++ shadow-4.8/src/useradd.c 2019-12-15 23:40:29.745000000 +0100
32 @@ -96,10 +96,10 @@ const char *Prog;
34 * These defaults are used if there is no defaults file.
36 -static gid_t def_group = 100;
37 +static gid_t def_group = 1000;
38 static const char *def_gname = "other";
39 -static const char *def_home = "/home";
40 -static const char *def_shell = "";
41 +static const char *def_home = "/home/users";
42 +static const char *def_shell = "/sbin/nologin";
43 static const char *def_template = SKEL_DIR;
44 static const char *def_create_mail_spool = "no";
46 @@ -109,7 +109,7 @@ static const char *def_expire = "";
47 #define VALID(s) (strcspn (s, ":\n") == strlen (s))
49 static const char *user_name = "";
50 -static const char *user_pass = "!";
51 +static const char *user_pass = "!!";
53 static gid_t user_gid;
54 static const char *user_comment = "";