[Logwatch-Devel] SSHD error Patch

Mike Tremaine mgt at stellarcore.net
Thu Aug 12 13:58:21 MST 2004


On Thu, 2004-08-12 at 11:23, Ann Hopkins wrote:
> I know you wrote your message awhile ago, but I am the one with sshd error, what 
> was the fix?
> 
> 
The patch was....

--- /home/mgt/Sandbox/logwatch/scripts/services/sshd    2004-06-23
08:01:17.000000000 -0700
+++ sshd        2004-07-20 08:46:41.371765703 -0700
@@ -170,7 +173,7 @@
       $RootLogin{$Host}++;
    } elsif ( ($Error) = ($ThisLine =~ /^Cannot release PAM
authentication\[\d\]: (.*)$/)) {
       $PamReleaseFail{$Error}++;
-   } elsif ( $ThisLine =~ m/^error: PAM: (.*)$/) {
+   } elsif ( ($Error) = ( $ThisLine =~ m/^error: PAM: (.*)$/)) {
       $PamReleaseFail{$Error}++;
    } elsif ( ($Reason) = ($ThisLine =~ /^Setting tty modes failed:
(.*)$/)) {
       $TTYModesFail{$Reason}++;


Which means open the file /etc/log.d/scripts/services/sshd go down to
line 174 look for 

} elsif ( $ThisLine =~ m/^error: PAM: (.*)$/) {

Change it to

} elsif ( ($Error) = ( $ThisLine =~ m/^error: PAM: (.*)$/)) {

-- 
Mike Tremaine
mgt at stellarcore.net
http://www.stellarcore.net



More information about the Logwatch-Devel mailing list