From owner-freebsd-questions@FreeBSD.ORG Tue Mar 6 18:11:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6445F16A402 for ; Tue, 6 Mar 2007 18:11:29 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.19.101.164]) by mx1.freebsd.org (Postfix) with ESMTP id 42D1A13C48D for ; Tue, 6 Mar 2007 18:11:29 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from localhost (localhost [127.0.0.1]) by mail.barafranca.com (Postfix) with ESMTP id 3A10FC4D9F; Tue, 6 Mar 2007 18:34:21 +0000 (UTC) Received: from mail.barafranca.com ([67.19.101.164]) by localhost (mail.barafranca.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03186-03; Tue, 6 Mar 2007 18:33:33 +0000 (UTC) Received: from [192.168.0.1] (a213-22-26-111.cpe.netcabo.pt [213.22.26.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTP id E9344C57DF; Tue, 6 Mar 2007 18:33:32 +0000 (UTC) Message-ID: <45EDAEB5.3080706@barafranca.com> Date: Tue, 06 Mar 2007 18:11:01 +0000 From: Hugo Silva User-Agent: Thunderbird 1.5.0.7 (X11/20061007) MIME-Version: 1.0 To: rapopp@eastcentral.edu, freebsd-questions@freebsd.org References: <200703061200.05557.rapopp@eastcentral.edu> In-Reply-To: <200703061200.05557.rapopp@eastcentral.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at barafranca.com X-Spam-Status: No, score=0 tagged_above=-1 required=4 tests=[none] X-Spam-Score: 0 X-Spam-Level: Cc: Subject: Re: login.conf questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2007 18:11:29 -0000 Hellom Reuben A. Popp wrote: > Hello everyone, > > I have set up a few parameters in a few classes in login.conf and reran > cap_mkdb /etc/login.conf, but some things don't seem to work. > > For example, I have the default class configured with idletime=20, but I have > users able to login and stay in the system for much longer than the defined > limit. Usually, it's students here who were working on a project in vi and > then closed their putty session or something. > You can "fix" that problem by using ClientAliveInterval 60 ClientAliveCountMax 2 on /etc/ssh/sshd_config This means clients will be disconnected after 2 tries, spaced by 60 seconds each. > Am I doing something incorrectly or is there other parameters I need to > specify? > > I have tested this and many other login.conf options, such as idletime and maximum session times, it seems that these values do nothing, and as far back as I can remember (4.4-RELEASE), they never did. Either I've been doing something wrong all this time, or they really don't work :) A more direct answer to your problem (depending on what you're trying to solve, if it's just hung users on the 'w' output, the above suggestion will fix that) might be sysutils/idled, which is a daemon that does just what you want. > Thanks in advance (again) > Reuben A. Popp > > > Regards, Hugo