[CentOS] setting up auto logout in CentOS 6

Vanhorn, Mike michael.vanhorn at wright.edu
Wed Jun 8 20:42:12 UTC 2016


I would like to have my lab workstations logout a session after the person has been idle for a certain period of time. After some searching on the web, I got into 

/etc/gconf/schemas/gnome-session.schemas

and set the default value of max_idle_action to “forced-logout”:

     <schema>
          <key>/schemas/desktop/gnome/session/max_idle_action</key>
          <applyto>/desktop/gnome/session/max_idle_action</applyto>
          <owner>gnome</owner>
          <type>string</type>
          <default>forced-logout</default>
          <gettext_domain>gnome-session-2.0</gettext_domain>
          <locale name="C">
             <short>The action to take after the maximum idle time</short>
             <long>The name of the action to take when the maximum allowed idle time has been reached. The Delay is specified in the "max_idle_time" key. Allowed values are: logout, forced-logout. An empty string disables the action.</long>
          </locale>
      </schema>

but the system is not logging me out after the max_idle_time. Is there something I’m missing?

Thanks!

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanhorn at wright.edu



More information about the CentOS mailing list