How to set bash auto logout expiration in ubuntu 20.04 ?
I,m setting the variable TMOUT for root user to 2 hours on my server using following bash-command:
sudo export TMOUT=7200
But it does not work at all, are there any other solutions to achieve this, other than putting that variable in my .profile
?