Home > English, Tech Crunch > HOWTO Automatically logout your UNIX shell

HOWTO Automatically logout your UNIX shell

This article is incomplete and was first written in June 2007
for the BeezNest technical website (http://glasnost.beeznest.org/articles/358).

To ensure a shell left open automatically logs out (kicks the user) after a certain idle time, most recent shells implement its autologout.

Just set the right environment variable and you’re done!

The following two expressions are equivalent.

Bash

TMOUT (expressed in seconds)

export TMOUT=300

Tcsh

autologout (expressed in minutes)

set autologout=5

But maybe what you are looking for is something to lock the console (or terminal) after a certain idle time? In this case, just use vlock.

Advertisements
Categories: English, Tech Crunch Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: