From owner-freebsd-questions@FreeBSD.ORG Mon Oct 31 15:09:37 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 6F3F5106564A for ; Mon, 31 Oct 2011 15:09:37 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 18B298FC13 for ; Mon, 31 Oct 2011 15:09:36 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id p9VF9Zrc068422 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 Oct 2011 10:09:36 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id p9VF9Z9i047814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 Oct 2011 10:09:35 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id p9VF9ZXI047812; Mon, 31 Oct 2011 10:09:35 -0500 (CDT) (envelope-from dan) Date: Mon, 31 Oct 2011 10:09:34 -0500 From: Dan Nelson To: Damien Fleuriot Message-ID: <20111031150934.GO93709@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Mon, 31 Oct 2011 10:09:36 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: 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 15:09:37 -0000 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. -- Dan Nelson dnelson@allantgroup.com