idletime in login.conf

Damien Fleuriot ml at my.gd
Mon Oct 31 08:00:49 UTC 2011


On 30 Oct 2011, at 16:45, Modulok <modulok at gmail.com> 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.


More information about the freebsd-questions mailing list