1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin mezzanine_patched_e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin |
2 |
--- e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin 2006-03-14 12:15:45.000000000 -0500 |
3 |
+++ mezzanine_patched_e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin 2007-10-23 12:21:17.000000000 -0400 |
4 |
@@ -1,5 +1,7 @@ |
5 |
{ |
6 |
my $PermitRootLogin = $sshd{'PermitRootLogin'} || "no"; |
7 |
- $OUT = "PermitRootLogin "; |
8 |
+ my $status = $sshd{'status'} || 'disabled'; |
9 |
+ $OUT .= "# sshd is currently disabled\n# " unless $status eq "enabled"; |
10 |
+ $OUT .= "PermitRootLogin "; |
11 |
$OUT .= ($PermitRootLogin eq "yes") ? "yes" : "no"; |
12 |
} |