P
P
Pavel2016-08-05 14:02:01
USB
Pavel, 2016-08-05 14:02:01

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

3 answer(s)
A
Alexey Yarkov, 2016-08-05
@0Err

For Windows
For Linux

T
TomasHuk, 2016-08-05
@TomasHuk

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.

I
Igor, 2016-08-05
@DMGarikk

Smoke authorization by smart card (and a usb key from a client bank, for example, can also act as a smart card)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question