Blame SOURCES/shadow-4.9-redhat.patch

b8f1b8
diff -up shadow-4.9/src/useradd.c.redhat shadow-4.9/src/useradd.c
b8f1b8
--- shadow-4.9/src/useradd.c.redhat	2021-07-22 23:55:35.000000000 +0200
b8f1b8
+++ shadow-4.9/src/useradd.c	2021-08-02 11:45:11.942867250 +0200
b8f1b8
@@ -104,7 +104,7 @@ FILE *shadow_logfd = NULL;
b8f1b8
 static gid_t def_group = 1000;
b8f1b8
 static const char *def_gname = "other";
b8f1b8
 static const char *def_home = "/home";
b8f1b8
-static const char *def_shell = "/bin/bash";
b8f1b8
+static const char *def_shell = "/sbin/nologin";
b8f1b8
 static const char *def_template = SKEL_DIR;
b8f1b8
 static const char *def_create_mail_spool = "yes";
b8f1b8
 
b8f1b8
@@ -114,7 +114,7 @@ static const char *def_expire = "";
b8f1b8
 #define	VALID(s)	(strcspn (s, ":\n") == strlen (s))
b8f1b8
 
b8f1b8
 static const char *user_name = "";
b8f1b8
-static const char *user_pass = "!";
b8f1b8
+static const char *user_pass = "!!";
b8f1b8
 static uid_t user_id;
b8f1b8
 static gid_t user_gid;
b8f1b8
 static const char *user_comment = "";
b8f1b8
@@ -1204,9 +1204,9 @@ static void process_flags (int argc, cha
b8f1b8
 		};
b8f1b8
 		while ((c = getopt_long (argc, argv,
b8f1b8
 #ifdef WITH_SELINUX
b8f1b8
-		                         "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:UZ:",
b8f1b8
+		                         "b:c:d:De:f:g:G:hk:K:lmMnNop:rR:P:s:u:UZ:",
b8f1b8
 #else				/* !WITH_SELINUX */
b8f1b8
-		                         "b:c:d:De:f:g:G:hk:K:lmMNop:rR:P:s:u:U",
b8f1b8
+		                         "b:c:d:De:f:g:G:hk:K:lmMnNop:rR:P:s:u:U",
b8f1b8
 #endif				/* !WITH_SELINUX */
b8f1b8
 		                         long_options, NULL)) != -1) {
b8f1b8
 			switch (c) {
b8f1b8
@@ -1363,6 +1363,7 @@ static void process_flags (int argc, cha
b8f1b8
 			case 'M':
b8f1b8
 				Mflg = true;
b8f1b8
 				break;
b8f1b8
+			case 'n':
b8f1b8
 			case 'N':
b8f1b8
 				Nflg = true;
b8f1b8
 				break;