7

I want to have a few console windows running tail -f on logs. Unfortunately this means that anyone with access to the computer can press Ctrl+c and have shell access.

So I want to lock the screen while still leave everything on the desktop visible.

So has anyone heard of a transparent screensaver or do you have a better idea on how to solve my problem?

5

This trick works for me:

$ xlock -mode blank -geometry 1x1

However, don't forget that for mission critical servers which hold private data, a screen saver is not enough. Screen savers are programs, they may eventually have bugs. Sometimes they segfault and that may be the reason for unwanted people to get access. During 10 years of linux I've seen xlock segfaulting a couple of times. Fortunately, only on my home workstation which was physically safe from intruders :-)

  • 1
    I find it is such a design mistake to unlock the screen when the screensaver dies badly... I guess that killing the X11 server would be much more secure in case a screenserver exits with non-zero. – Raúl Salinas-Monteagudo Jun 21 '17 at 8:52
2

This question is old, but in case people stumble across it, I use xtrlock for this purpose:

$ apt-cache show xtrlock
[...]
Description-en: Minimal X display lock program
 xtrlock is a very minimal X display lock program, which uses nothing
 except the Xlib library.  It doesn't obscure the screen, it is
 completely idle while the display is locked and you don't type at it,
 and it doesn't do funny things to the X access control lists.

Changes the cursor to a padlock but otherwise makes no visible changes. To unlock, hit Enter, type password, hit Enter (there's no prompt).

0

What about running those tail -f in screen, then detach from the screen and run vlock?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.