rcolebaugh / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone

Blame SOURCES/openssh-7.4p1-permit-root-login.patch

b58e57
diff -up openssh-7.4p1/servconf.c.permit-root openssh-7.4p1/servconf.c
b58e57
--- openssh-7.4p1/servconf.c.permit-root	2017-02-10 10:27:18.109487568 +0100
b58e57
+++ openssh-7.4p1/servconf.c	2017-02-10 10:28:12.385776132 +0100
b58e57
@@ -231,7 +231,7 @@ fill_default_server_options(ServerOption
b58e57
 	if (options->login_grace_time == -1)
b58e57
 		options->login_grace_time = 120;
b58e57
 	if (options->permit_root_login == PERMIT_NOT_SET)
b58e57
-		options->permit_root_login = PERMIT_NO_PASSWD;
b58e57
+		options->permit_root_login = PERMIT_YES;
b58e57
 	if (options->ignore_rhosts == -1)
b58e57
 		options->ignore_rhosts = 1;
b58e57
 	if (options->ignore_user_known_hosts == -1)
b58e57
diff -up openssh-7.4p1/sshd_config.5.permit-root openssh-7.4p1/sshd_config.5
b58e57
--- openssh-7.4p1/sshd_config.5.permit-root	2017-02-10 10:28:24.174605582 +0100
b58e57
+++ openssh-7.4p1/sshd_config.5	2017-02-10 10:28:42.254344023 +0100
b58e57
@@ -1227,7 +1227,7 @@ The argument must be
b58e57
 or
b58e57
 .Cm no .
b58e57
 The default is
b58e57
-.Cm prohibit-password .
b58e57
+.Cm yes .
b58e57
 .Pp
b58e57
 If this option is set to
b58e57
 .Cm prohibit-password
b58e57
diff -up openssh-7.4p1/sshd_config.permit-root openssh-7.4p1/sshd_config
b58e57
--- openssh-7.4p1/sshd_config.permit-root	2017-02-10 10:26:52.256797645 +0100
b58e57
+++ openssh-7.4p1/sshd_config	2017-02-10 10:26:52.276797405 +0100
b58e57
@@ -35,7 +35,7 @@ SyslogFacility AUTHPRIV
b58e57
 # Authentication:
b58e57
 
b58e57
 #LoginGraceTime 2m
b58e57
-#PermitRootLogin prohibit-password
b58e57
+#PermitRootLogin yes
b58e57
 #StrictModes yes
b58e57
 #MaxAuthTries 6
b58e57
 #MaxSessions 10