Answer the question
In order to leave comments, you need to log in
How to configure logout from shell on timeout?
Installed OpenSuse Tumbleweed with sneakers.
The behavior is standard - if you close the laptop lid in the working system, it goes to sleep. I open the lid - the session is locked and asks for a password. Sometimes at the time of work I log in to a shell session, without Xs, switching to it via ctrl+alt+fnumber .
Problem: If I log into it, then after waking up, only the session will be locked, the terminal session will remain unlocked and you can easily get access to the computer by switching to the desired session.
How to lock it when entering sleep and after some time has elapsed with a lack of activity?
Answer the question
In order to leave comments, you need to log in
A variable environment TMOUT
is probably what you are looking for.
autologout
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question