7 February 2014

Disable shell auto logout session in Suse Linux


Q: How to disable the auto logout session in Suse Enterprise Linux?

A: Need to edit the autologout.sh file in the main profile.d folder:

# vi /etc/profile.d/autologout.sh


Change TMOUT env variable from 300 to 0 and comment out echo in next line:

... 
#readonly TMOUT="300" && export TMOUT   
readonly TMOUT="0" && export TMOUT  
#echo "Remoteboard Login detected. Timeout activated.";
... 


Now issue the source command or logout and login back again:

# source


As a result:
# echo $TMOUT  
 0  


and auto logout is disabled now.





No comments:

Post a Comment