1 --- shadow-4.0.6/src/useradd.c 2004-11-18 21:45:00.713398344 +0100
2 +++ shadow-4.0.16/src/useradd.c 2006-06-08 01:17:05.580340031 +0300
5 * These defaults are used if there is no defaults file.
7 -static gid_t def_group = 100;
8 +static gid_t def_group = 1000;
9 static const char *def_gname = "other";
10 -static const char *def_home = "/home";
11 -static const char *def_shell = "";
12 +static const char *def_home = "/home/users";
13 +static const char *def_shell = "/sbin/nologin";
14 static const char *def_template = SKEL_DIR;
15 static const char *def_create_mail_spool = "no";
18 #define VALID(s) (strcspn (s, ":\n") == strlen (s))
20 static const char *user_name = "";
21 -static const char *user_pass = "!";
22 +static const char *user_pass = "!!";
24 static gid_t user_gid;
25 static const char *user_comment = "";
26 --- shadow-4.5/libmisc/find_new_gid.c~ 2017-01-29 22:37:22.000000000 +0200
27 +++ shadow-4.5/libmisc/find_new_gid.c 2017-05-17 23:13:32.785253060 +0300
29 /* A requested ID is allowed to be below the autoselect range */
30 *preferred_min = (gid_t) 1;
32 - /* Get the minimum ID range from login.defs or default to 101 */
33 - *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL);
34 + /* Get the minimum ID range from login.defs or default to 10 */
35 + *min_id = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL);
38 * If SYS_GID_MAX is unspecified, we should assume it to be one
39 --- shadow-4.5/libmisc/find_new_uid.c~ 2017-01-29 22:37:22.000000000 +0200
40 +++ shadow-4.5/libmisc/find_new_uid.c 2017-05-17 23:10:38.366687971 +0300
42 /* A requested ID is allowed to be below the autoselect range */
43 *preferred_min = (uid_t) 1;
45 - /* Get the minimum ID range from login.defs or default to 101 */
46 - *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL);
47 + /* Get the minimum ID range from login.defs or default to 1 */
48 + *min_id = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL);
51 * If SYS_UID_MAX is unspecified, we should assume it to be one