How to set session timeout in Linux?

How do I permanently set a 30 second timeout to automatically log users out in Linux?

Cheers
GMac
gerrymac1943Asked:
Who is Participating?
 
woolmilkporcCommented:
export TMOUT=30

in /etc/profile

To keep users from changing or unsetting it add

readonly TMOUT
0
 
gerrymac1943Author Commented:
genius!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.