How to block linux program from printing?

I need to prevent my users from printing the data displayed by my program. The idea at the moment is to make it a full-screen program, where probably any other Linux shortcuts or applications are locked and the print screen screen is locked. Is this approach right? How can i do this?

Update. My users are limited to not starting the virtual machine, and they have no cameras. They also use the GNOME desktop environment.

Update: my systems. I just gave them temporary access, so the systems or their operating systems will not be tampered with. They cannot connect any USB devices, and users are mostly unaware of Linux.

+6
source share
3 answers

My approach would be to not use GNOME or any other multitasking window manager, but just your application will be the only X server client in question. (Perhaps, along with a special windowmanager that puts the window in full screen and logs out when the program is closed.)

Configure your X server so that it does not accept any other connections and does not prohibit your users from running any other programs on your computer (for example, without logging in).

+5
source

It's impossible. You cannot block “screenshots” at each level.

For example, even if you somehow disabled key binding, blocked the gnome-screenshot utility, etc., the user could still transfer the contents of the file of the framebuffer device to a file.

+2
source

It's impossible. Users can write their own screenshots and take a screenshot at the end of the day, even if you try to prevent them.

This is contrary to philosophy. for free software and Linux. Users should be free to do anything with their programs without restrictions. Why do you want to prevent users from taking screenshots from the system that they "own"? It does not make sense. They are entitled to it.

-1
source

Source: https://habr.com/ru/post/893397/


All Articles