Linux : Force logout of users

A network based on a Linux system can also be used by many users that the administrator can not control himself during several sessions, so it happens more often than is necessary for users to leave unnecessarily opened its session; in this case may help a small instruction that allows to force the a particular profile logout when it is idle for a certain period of time.

This statement will be added to the file “.bash_profile” or simply “.profile ” relative to a specific user, if a network is only one user who frequently makes the mistake of leaving their session open, otherwise, you can set a timeout error for all users by editing the file / etc / profile or / etc / bashrc for which you should proceed first with the opening of the file ( as root) :

# vim / etc / profile


Then type the education EXPORT TMOUT followed by the number of seconds before the expected log :

# EXPORT TMOUT = 600

Education will not work if a user as well as the open session propia, leave some programs running.

Related posts:

  1. The Ceph file system lands on Linux
  2. CD to ISO with LINUX
  3. Twitter as an online marketing tool to use
This entry was posted in Linux. Bookmark the permalink.

Comments are closed.