1 diff -urpa shadow-4.15.1.orig/lib/find_new_gid.c shadow-4.15.1/lib/find_new_gid.c
2 --- shadow-4.15.1.orig/lib/find_new_gid.c 2024-03-01 02:50:52.000000000 +0100
3 +++ shadow-4.15.1/lib/find_new_gid.c 2024-04-02 12:50:48.196919001 +0200
4 @@ -40,8 +40,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 = getdef_ulong ("SYS_GID_MIN", 101UL);
10 + /* Get the minimum ID range from login.defs or default to 10 */
11 + *min_id = 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.15.1.orig/lib/find_new_uid.c shadow-4.15.1/lib/find_new_uid.c
16 --- shadow-4.15.1.orig/lib/find_new_uid.c 2024-03-01 02:50:52.000000000 +0100
17 +++ shadow-4.15.1/lib/find_new_uid.c 2024-04-02 12:51:12.513247551 +0200
18 @@ -40,8 +40,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 = getdef_ulong ("SYS_UID_MIN", 101UL);
24 + /* Get the minimum ID range from login.defs or default to 1 */
25 + *min_id = 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.15.1.orig/src/useradd.c shadow-4.15.1/src/useradd.c
30 --- shadow-4.15.1.orig/src/useradd.c 2024-03-23 21:32:25.000000000 +0100
31 +++ shadow-4.15.1/src/useradd.c 2024-04-02 12:43:41.243157136 +0200
32 @@ -93,11 +93,11 @@ static const char Prog[] = "useradd";
33 static gid_t def_group = 1000;
34 static const char *def_groups = "";
35 static const char *def_gname = "other";
36 -static const char *def_home = "/home";
37 -static const char *def_shell = "/bin/bash";
38 +static const char *def_home = "/home/users";
39 +static const char *def_shell = "/sbin/nologin";
40 static const char *def_template = SKEL_DIR;
41 static const char *def_usrtemplate = USRSKELDIR;
42 -static const char *def_create_mail_spool = "yes";
43 +static const char *def_create_mail_spool = "no";
44 static const char *def_log_init = "yes";
46 static long def_inactive = -1;
47 @@ -106,7 +106,7 @@ static const char *def_expire = "";
48 #define VALID(s) (strcspn (s, ":\n") == strlen (s))
50 static const char *user_name = "";
51 -static const char *user_pass = "!";
52 +static const char *user_pass = "!!";
54 static gid_t user_gid;
55 static const char *user_comment = "";