From: "Adam T. Bowen" Subject: Re: login attempts Date: Thu, 10 Apr 2003 16:16:34 +0100 (BST) Sender: linux-admin-owner@vger.kernel.org Message-ID: References: <5.1.1.6.0.20030410072747.00af4030@mustang> Mime-Version: 1.0 Return-path: In-Reply-To: <5.1.1.6.0.20030410072747.00af4030@mustang> List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Scott Taylor Cc: linux-admin@vger.kernel.org > I know I can find login attempts in the /var/log files. Does anyone know > of a way to tell ssh2d to send an email to the SysAdmin on failed login > attempts? [snip] If you are using the TCP/IP daemon wrappers (libwrap) then you can put this : ALL : ALL : spawn (/bin/warn %a %A %d %n %N %u) in your hosts.deny (usually in /etc). The expansions that you can pass to your script are listed in man 5 hosts_access. Cheers Adam Bowen