Answer the question
In order to leave comments, you need to log in
How to instantly unlock a PC on Linux / Windows by connecting a USB flash drive?
I have 2 PCs Windows and Centos, it became necessary to constantly block the PC.
But since you often have to do this, it is often very long and tedious to enter the password every time.
What I would like:
I got up from behind the workplace> pulled the USB flash drive from the socket and the PC was locked.
He came and sat down and put in a flash drive> the lock was removed
The lock is only a slave. desktop (programs must be open and how they were after unlock) I
looked for something like this but found it only under Windows 10 unlock using a USB key, while I have to leave the account .. but I only have a slave. the table must be blocked.
Answer the question
In order to leave comments, you need to log in
You can write a script that in a loop (for example, every 1 s) will check for the presence of a specific file on a flash drive. If there is no access to the file (no flash drive), then block the keyboard and mouse. Additionally, you can display some kind of picture on top of all windows.
I think I know how to do it under WIndows, on Autoit.
There is also an option to implement it with a python script, cross-platform.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question