rcolebaugh / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone

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

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