In Unix, why am I being automatically logged out?

Many Unix systems automatically close terminal sessions that have been inactive or signed on for too long. Typically, users may not change this behavior, as it is crucial to preserve resources and maintain security.

The tcsh shell also has a feature that disconnects sessions after a period of inactivity. On many systems, the default is 60 minutes, after which the message "auto-logout" appears and the shell exits. You can modify this behavior by deactivating or changing the autologout variable. To turn autologout off altogether, at the shell prompt, enter:

 unset autologout

In this state, a tcsh session will never self-terminate, though it will respond to disconnect commands from the system or user. If you want to change the length of idle time tcsh waits before issuing an autologout, at the shell prompt, enter:

 set autologout=n

Replace n with the amount of idle time, in minutes, you want tcsh to wait. To permanently unset or change the autologout variable, put these commands in your .login file (for login shells only) or .cshrc file (all shells).

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document ajgy in the Knowledge Base.
Last modified on 2017-05-16 11:52:09.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.