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, change the user's shell from sh to tcsh. The tcsh shell has already implemented an autologout, which can be defined afterwards:

chsh -s tcsh
ee ~/.login

Add the following line and specify the desired idle time until the auto-logout should be executed:

set -r autologout=1

Re-login with login for the changes to take effect.