Automatic logout

With autologout configured, a user is automatically logged out after a certain time without interacting with the command line. This is to prevent unauthorized access to the command line when the IPC is unattended and a logout by the user has been forgotten. By default, the autologout is not active, but should be switched on for commissioning.

To enable autologout, edit the file /etc/profile.d/autologout.sh with root privileges, for example as follows:

sudo nano /etc/profile.d/autologout.sh

Add the following lines:

export TMOUT=300
readonly TMOUT

Log in again so that the user is automatically logged out after 300 seconds (5 minutes).