/[smeserver]/rpms/e-smith-openssh/sme7/e-smith-openssh-1.12.0-rootkey.patch
ViewVC logotype

Annotation of /rpms/e-smith-openssh/sme7/e-smith-openssh-1.12.0-rootkey.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Dec 18 10:53:52 2007 UTC (16 years, 6 months ago) by bytegw
Branch: MAIN
CVS Tags: e-smith-openssh-1_12_0-13_el4_sme, e-smith-openssh-1_12_0-12_el4_sme, e-smith-openssh-1_12_0-11_el4_sme
Updates

1 bytegw 1.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 2007-12-17 17:08:31.000000000 -0700
3     +++ mezzanine_patched_e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin 2007-12-17 17:07:04.000000000 -0700
4     @@ -1,7 +1,14 @@
5     {
6     my $PermitRootLogin = $sshd{'PermitRootLogin'} || "no";
7     my $status = $sshd{'status'} || 'disabled';
8     - $OUT .= "# sshd is currently disabled\n# " unless $status eq "enabled";
9     $OUT .= "PermitRootLogin ";
10     - $OUT .= ($PermitRootLogin eq "yes") ? "yes" : "no";
11     + if ( $status ne 'enabled' ) {
12     + $OUT .= 'no';
13     + } elsif ( $PermitRootLogin eq 'yes' ) {
14     + $OUT .= 'yes';
15     + } elsif ( $PermitRootLogin eq 'key' || $PermitRootLogin eq 'nopass' ) {
16     + $OUT .= 'without-password';
17     + } else {
18     + $OUT .= 'no';
19     + }
20     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed