Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Say, I have USB drive authentication up and working. So far, so hoopy. But now I want to take the next step, which is locking the machine when I eject the medium. I know there is udev I can script, but it would be really silly if there's a solution out there which I fail to type the right keywords to find.

So the objective is: lock the screen when the key medium is taken out. Optionally, offer to switch user.

In case anyone cares, I use Debian Sid with WindowMaker, adding gnome-settings-daemon to the mix. I have GNOME programs and use them, just not using the DE itself. I hope there is DE/WM-agnostic solution.

„There is no ready-made solution” counts as a valid answer, too.

share|improve this question

1 Answer 1

This was answered over on Ask Ubuntu. The answers there seem like they would work on many *nixes.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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