1 --- shadow-4.12.3/src/useradd.c~ 2022-08-22 18:27:55.000000000 +0300
2 +++ shadow-4.12.3/src/useradd.c 2022-08-22 18:27:58.336079332 +0300
5 static gid_t def_group = 1000;
6 static const char *def_gname = "other";
7 -static const char *def_home = "/home";
8 -static const char *def_shell = "/bin/bash";
9 +static const char *def_home = "/home/users";
10 +static const char *def_shell = "/sbin/nologin";
11 static const char *def_template = SKEL_DIR;
12 static const char *def_create_mail_spool = "yes";
13 static const char *def_log_init = "yes";
15 #define VALID(s) (strcspn (s, ":\n") == strlen (s))
17 static const char *user_name = "";
18 -static const char *user_pass = "!";
19 +static const char *user_pass = "!!";
21 static gid_t user_gid;
22 static const char *user_comment = "";
23 --- shadow-4.5/libmisc/find_new_gid.c~ 2017-01-29 22:37:22.000000000 +0200
24 +++ shadow-4.5/libmisc/find_new_gid.c 2017-05-17 23:13:32.785253060 +0300
26 /* A requested ID is allowed to be below the autoselect range */
27 *preferred_min = (gid_t) 1;
29 - /* Get the minimum ID range from login.defs or default to 101 */
30 - *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL);
31 + /* Get the minimum ID range from login.defs or default to 10 */
32 + *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL);
35 * If SYS_GID_MAX is unspecified, we should assume it to be one
36 --- shadow-4.5/libmisc/find_new_uid.c~ 2017-01-29 22:37:22.000000000 +0200
37 +++ shadow-4.5/libmisc/find_new_uid.c 2017-05-17 23:10:38.366687971 +0300
39 /* A requested ID is allowed to be below the autoselect range */
40 *preferred_min = (uid_t) 1;
42 - /* Get the minimum ID range from login.defs or default to 101 */
43 - *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL);
44 + /* Get the minimum ID range from login.defs or default to 1 */
45 + *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL);
48 * If SYS_UID_MAX is unspecified, we should assume it to be one