Enable auto logoff

Enabling automatic logoff

Systems can be set to automatically logoff a user after a period of activity by setting some parameters:

Linux/Solaris

  • /etc/profile

AIX

  • /etc/security/.profile

Parameter declarations are the same across platforms.

Append the following to the system profile:

#Enable automatic logoff
TMOUT=600
TIMEOUT=600
readonly TMOUT TIMEOUT
export TMOUT TIMEOUT

tip
Set readonly to prevent the variables from being overwritten.

Share