]> git.pld-linux.org Git - packages/shadow.git/blame - shadow-pld.patch
todo about outdated config
[packages/shadow.git] / shadow-pld.patch
CommitLineData
8f1ee8fc
ER
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
3@@ -72,10 +72,10 @@
4 /*
5 * These defaults are used if there is no defaults file.
6 */
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";
32157634 13+static const char *def_shell = "/sbin/nologin";
8f1ee8fc
ER
14 static const char *def_template = SKEL_DIR;
15 static const char *def_create_mail_spool = "no";
16
17@@ -89,7 +89,7 @@
18 #define VALID(s) (strcspn (s, ":\n") == strlen (s))
19
20 static const char *user_name = "";
21-static const char *user_pass = "!";
22+static const char *user_pass = "!!";
23 static uid_t user_id;
24 static gid_t user_gid;
25 static const char *user_comment = "";
32157634
JR
26--- shadow-4.1.5.1/libmisc/find_new_gid.c~ 2011-07-29 17:38:23.000000000 +0200
27+++ shadow-4.1.5.1/libmisc/find_new_gid.c 2012-12-14 14:03:45.355638812 +0100
28@@ -68,7 +68,7 @@
29 return -1;
30 }
31 } else {
32- gid_min = (gid_t) getdef_ulong ("SYS_GID_MIN", 101UL);
33+ gid_min = (gid_t) getdef_ulong ("SYS_GID_MIN", 10UL);
34 gid_max = (gid_t) getdef_ulong ("GID_MIN", 1000UL) - 1;
35 gid_max = (gid_t) getdef_ulong ("SYS_GID_MAX", (unsigned long) gid_max);
36 if (gid_max < gid_min) {
37--- shadow-4.1.5.1/libmisc/find_new_uid.c~ 2011-07-29 17:39:16.000000000 +0200
38+++ shadow-4.1.5.1/libmisc/find_new_uid.c 2012-12-14 14:03:29.645639367 +0100
39@@ -68,7 +68,7 @@
40 return -1;
41 }
42 } else {
43- uid_min = (uid_t) getdef_ulong ("SYS_UID_MIN", 101UL);
44+ uid_min = (uid_t) getdef_ulong ("SYS_UID_MIN", 1UL);
45 uid_max = (uid_t) getdef_ulong ("UID_MIN", 1000UL) - 1;
46 uid_max = (uid_t) getdef_ulong ("SYS_UID_MAX", (unsigned long) uid_max);
47 if (uid_max < uid_min) {
This page took 0.031516 seconds and 4 git commands to generate.