From owner-freebsd-isp@FreeBSD.ORG Sun Feb 13 08:55:01 2005 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4734616A4CE for ; Sun, 13 Feb 2005 08:55:01 +0000 (GMT) Received: from zephon.secspace.de (zephon.secspace.de [62.75.136.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0815043D39 for ; Sun, 13 Feb 2005 08:55:01 +0000 (GMT) (envelope-from ml@ps102.de) Received: from [192.168.17.11] (pD95F2B4C.dip.t-dialin.net [217.95.43.76]) by zephon.secspace.de (Postfix) with ESMTP id 82D656EB29; Sun, 13 Feb 2005 09:54:59 +0100 (CET) Message-ID: <420F15F8.5070102@ps102.de> Date: Sun, 13 Feb 2005 09:55:20 +0100 From: Volker Kindermann User-Agent: Mozilla Thunderbird 1.0 (X11/20050206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Sandys References: <20050208000000.D64811@bsd3.nyct.net> In-Reply-To: <20050208000000.D64811@bsd3.nyct.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-isp@freebsd.org Subject: Re: PAM and login.conf + SSH and IMAP X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 08:55:01 -0000 Hi Paul, > I need to block ssh access to wheel only and at the same time allow IMAP access > to any user. > > When I put following in /etc/login.access, the ssh behaves the way I want: > +:wheel:ALL > -:ALL:ALL > > However, it also denies imap access. I'm trying different options in > /etc/pam.d/imap without any success. Is there a PAM module that would > authenticate using system password file and disregarded /etc/login.access ? > > Any suggestions ? why don't you use ssh's ability to restrict logins? Look for "Allowed groups" in man sshd_config If you allow the wheel group there, than no other user may login via ssh. -volker