Ask Your Question

How to configure a shutdown at the xth wrong entered password?

asked 2019-04-09 10:59:51 -0500

rugk gravatar image

updated 2019-04-09 11:01:12 -0500

Having an encrypted hard drive is all well and good, but chances are that if someone is gonna steal your laptop, it’s probably not going to be turned off. Most likely, it will be stolen in a powered-on state. And so your encrypted hard drive doesn’t increase your security at all since it’s currently unlocked.

This is how this blog article explains the problem and the setup on Debian.
A good solution may thus be to shutdown the device, when you have entered the wrong user-unlock password for e.g. 4 times.

However, I e.g. struggle to even find the common-auth or common-account in /etc/pam.d in my system there. Also, I guess, the article could be a little outdated or maybe not the best solution. And as I have not found this question being asked here already, I thought I'd better ask.

So in general: How do I configure an automatic shutdown after the x-th wrong entered password?

Note this is a security-requirement, so you should not e.g. not be able to cancel the shutdown. Also, it would be a little bad if you e.g. count for each user to 3, you should actually better have some global counter, so the attacker cannot switch to another user for trying their login first.

Cross-posted at StackExchange Unix.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-04-18 10:39:25 -0500

spCl gravatar image

I'd like to know that, too!

edit flag offensive delete link more


downvote, because that is not an answer, so I wasted time only to discover this is NOT answered.

SteveEbey73701 gravatar imageSteveEbey73701 ( 2019-04-20 15:22:53 -0500 )edit

Question Tools



Asked: 2019-04-09 10:59:51 -0500

Seen: 141 times

Last updated: Apr 18 '19