P
P
Pavel2018-07-03 11:34:41
linux
Pavel, 2018-07-03 11:34:41

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

2 answer(s)
I
Igor, 2018-07-03
@rusbaron

A variable environment TMOUTis probably what you are looking for.
autologout

D
Dmitry, 2018-07-03
@Tabletko

Do not log in to the console. Use a terminal emulator in X.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question