From owner-freebsd-questions@FreeBSD.ORG Mon Oct 31 18:25:34 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA986106566B for ; Mon, 31 Oct 2011 18:25:34 +0000 (UTC) (envelope-from jhelfman@experts-exchange.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [72.29.183.251]) by mx1.freebsd.org (Postfix) with ESMTP id A3C838FC1A for ; Mon, 31 Oct 2011 18:25:34 +0000 (UTC) Received: from mail.experts-exchange.com (localhost [127.0.0.1]) by mail.experts-exchange.com (Postfix) with ESMTP id 6523D6EBEF3; Mon, 31 Oct 2011 11:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-e.com; h= user-agent:organization:in-reply-to:content-disposition :content-type:content-type:mime-version:references:message-id :subject:subject:from:from:date:date:received:received:received; s=ee; t=1320085534; x=1321899934; bh=oHMAOktKpE5F2dWp6sorzntnEn i/SmX5wSLE/N11nHM=; b=WcBT88DZJU5Wo56bEySOsuPKTwNpRC9moDw0PFLXbE j3dTQ38BFoO4p2DnDjKgwvKNT8q4H8KnM4l/nUOfHpxkjtQiEoOXv7Ft4RpWBlaa jwB6x2+pzqtliuNtC83b5tjIvyuDJa0gVAvOv1Cy9E2ubGKwb0oniNzdmHoryQxx g= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.experts-exchange.com ([127.0.0.1]) by mail.experts-exchange.com (mail.experts-exchange.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s+alcmpU+5LS; Mon, 31 Oct 2011 11:25:34 -0700 (PDT) Received: from experts-exchange.com (unknown [192.168.103.122]) by mail.experts-exchange.com (Postfix) with SMTP id 401B36EBEDD; Mon, 31 Oct 2011 11:25:34 -0700 (PDT) Received: (nullmailer pid 47083 invoked by uid 1001); Mon, 31 Oct 2011 18:25:32 -0000 Date: Mon, 31 Oct 2011 11:25:32 -0700 From: Jason Helfman To: Dan Nelson Message-ID: <20111031182532.GF82316@eggman.experts-exchange.com> References: <20111031150934.GO93709@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20111031150934.GO93709@dan.emsphone.com> X-Operating-System: FreeBSD 8.2-RELEASE Organization: Experts-Exchange, LLC. http://www.experts-exchange.com X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Damien Fleuriot , FreeBSD Questions , Modulok Subject: Re: idletime in login.conf 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: Mon, 31 Oct 2011 18:25:34 -0000 On Mon, Oct 31, 2011 at 10:09:34AM -0500, Dan Nelson thus spake: >In the last episode (Oct 31), Damien Fleuriot said: >> On 30 Oct 2011, at 16:45, Modulok wrote: >> > List, >> > >> > Goal: Automatically logoff users that are idle after 'x' minutes. >> > >> > Attempt: I added this to /etc/login.conf to the default login class: >> > >> > :idletime=10m: >> > >> > I then rebuilt the database: >> > >> > cap_mkdb /etc/login.conf >> > >> > Problem: It doesn't work. The 'w' command shows users idle for 20 >> > minutes or more. I'm missing something. Other than an autologout shell >> > variables, how do I force idle users to logout? >> >> Are these users that logged in after or before your change ? >> >> Obviously the idle timeout only applies to users who logged in after you >> adjusted the value and rebuilt the db. > >Actually, the idle timeout is not implemented in the base system. It's >there in case someone writes a 3rd-party module that does idle detection. >See the login.conf manpage: > >RESERVED CAPABILITIES > The following capabilities are reserved for the purposes indicated and > may be supported by third-party software. They are not implemented in > the base system. >[...] > idletime time Maximum idle time before logout. > > You may want to look into /usr/ports/sysutils/doinkd for this. I use it on many systems, and it works remarkable well, and it is highly configurable. -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5