On Wed, Jul 10, 2019, at 19:04, Ian Zimmerman wrote: > Here is my next "low information" question, haha. > > I use i3lock which is like Xscreensaver but much much simpler; it plays > no movies or games, just blanks the screen with a configured color or > image. To unlock it you have to type your password. > > It bothers me that even when i3lock has locked the X session, I can > still switch to other Linux virtual consoles with Alt-Control-F<n> , > without typing the password. It so happens that on one of the other > virtual consoles there is often an interactive root shell :-P > > So, is it possible to prevent virtual console switching while the X > screen is locked, but still allow it at other times? Looks like > something the locker program would have to do, not the X server; but > again I don't know much about this stuff.
A command such as physlock can be used to lock virtual terminals: - https://github.com/muennich/physlock - https://packages.gentoo.org/packages/app-misc/physlock -- https://fturco.gitlab.io/