From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Broderick Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: stopping C2 security account lockout on root via SSH Date: Wed, 09 Feb 2005 11:18:38 -0500 Message-ID: <9024bf3a05020908186136d9f4@mail.gmail.com> References: <9024bf3a050126174030616a58@mail.gmail.com> Reply-To: Mike Broderick NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107965963 19505 80.91.229.2 (9 Feb 2005 16:19:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Feb 2005 16:19:23 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Feb 09 17:19:23 2005 Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1CyuYh-0005ND-J0 for gotm-tru64-unix-managers@gmane.org; Wed, 09 Feb 2005 17:19:20 +0100 Original-Received: (qmail 19320 invoked by uid 5); 9 Feb 2005 16:20:14 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 19301 invoked by uid 49501); 9 Feb 2005 16:20:13 -0000 Original-Received: from mikebroderick@gmail.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-2.3/5.0):. Processed in 4.491896 secs); 09 Feb 2005 16:20:13 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 9 Feb 2005 16:20:08 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IBN0006IK1CP2@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 09 Feb 2005 11:20:06 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IBN00E02K0KRW@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 09 Feb 2005 11:19:51 -0500 (EST) Original-Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IBN009IRJZ27T@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 09 Feb 2005 11:18:39 -0500 (EST) Original-Received: by rproxy.gmail.com with SMTP id 34so109372rns for ; Wed, 09 Feb 2005 08:18:38 -0800 (PST) Original-Received: by 10.38.179.70 with SMTP id b70mr92970rnf; Wed, 09 Feb 2005 08:18:38 -0800 (PST) Original-Received: by 10.38.206.7 with HTTP; Wed, 09 Feb 2005 08:18:38 -0800 (PST) In-reply-to: <9024bf3a050126174030616a58@mail.gmail.com> Original-To: tru64-unix-managers@ornl.gov DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=jAmbAPWgjCJv7ipnV+6wb9T7+zENVTpOFiGE7l0uzZzZvi53d5kd1o3+35zBjH+9afSfKZASI9SVDQlxQMo8BSlzU/dtjxJmLYNjYzWrUthGe8gRJOLGewi/UVcUb/MgJgEjGe5T2N3ZaE9VywfcA1ji/iQNwX+z4US0S0pfCHk= X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on email.cind.ornl.gov X-Spam-Level: X-MailScanner-To: gotm-tru64-unix-managers@gmane.org Xref: main.gmane.org gmane.os.tru64.managers:8016 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8016 Based on responses I received here and in an OpenSSH forum it seems for security reasons the sshd was modified to always pass all login attempts to the underlying auth mechanism first, regardless of sshd_config settings and only after that override the results if sshd settings (PermitRootLogin, DenyUser) apply. So the only way to block these lockouts is with firewalling (tcp_wrappers, ipfilter, etc). _Mike On Wed, 26 Jan 2005 20:40:29 -0500, Mike Broderick wrote: > I have a couple Tru64 boxes (4.0f and 5.1b) both using C2 security > that get occasional root login attacks via SSH. These attacks (3000 > hits on root last time) cause the root account to get locked. I tried > disabling root logins from SSH with "PerminRootLogins no" (in > sshd_config) but I still see failed attempts logged in the auth db > (u_numunsuclog for root user increments). I then tried adding > "DenyUsers root" too which seems to work on the 4.0f system but not on > 5.1b. I do get an "invalid user" error in the auth.log in both but on > 5.1b u_numunsuclog still increments. > > The Tru64 delivered ssh is not beig used, but rather a version of > OpenSSH manually downloaded/built. (4.0f has OpenSSH 3.1p1 and 5.1b > has 3.7.1p2) The 5.1b system was just upgraded from 5.1a to 5.1b. > > > _Mike >