Setting Up Auto Logout In CentOS 6

Home » CentOS » Setting Up Auto Logout In CentOS 6
CentOS 3 Comments

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”:


/schemas/desktop/gnome/session/max_idle_action
/desktop/gnome/session/max_idle_action
gnome
string
forced-logout
gnome-session-2.0

The action to take after the maximum idle time
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.

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

Thanks!

3 thoughts on - Setting Up Auto Logout In CentOS 6

  • Vanhorn, Mike wrote:

    Seems really complicated. I run KDE, and I believe there’s something in kde->system settings that lets me set that.

    mark

  • So, I’ve found that if you want to enforce gconf policies for workstations, you need to put them in /etc/gconf/gconf.xml.mandatory. For example, this is how we set the screensaver to lock:

    gconftool-2 –direct \
    –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
    –type bool \
    –set /apps/gnome-screensaver/idle_activation_enabled true gconftool-2 –direct \
    –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
    –type bool \
    –set /apps/gnome-screensaver/lock_enabled true gconftool-2 –direct \
    –config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
    –type int \
    –set /apps/gnome-screensaver/idle_delay 15


    Jonathan Billings

  • I tried using that, and it still doesn’t automatically logout. In face, the value I set in gconf.xml.mandatory doesn’t seem to get noticed at all. I set them to different values, and ‘gconftool-2 –get’ still shows the default values that I set in /etc/gconf/schemas/gnome-session.schemas.

LEAVE A COMMENT