On Wed, Jul 10, 2019 at 10:03:42AM -0700, 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.
Same here, it's simple and just works. > 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. Which init are you using, what display manager, and how are you launching it? I'm using systemd and sddm, and when I run `i3lock', I cannot switch to different virtual consoles. Not sure whether any of that stuff matters, but that was the first thing I thought of. Alec