Think of the worst possibility: Someone has your laptop and you are being coerced into giving them your password.

Can my Linux (I'm thinking of Arch) system be configured in a way that when a specific "fake" password is entered, a script is triggered so that, for example, some files are deleted?

Or maybe, given this wrong password, a fake environment is loaded, so whoever has my laptop can't see the real files?

  • Can, yes of course you can.. its open source... should you is a different matter.. you need to hack the password check logic to do so
    – LvB
    Nov 12, 2020 at 15:18
  • @LvB So there's no known software for this? Is this not a common idea/concept? I'm asking for real, because it seems like it would be.
    – yyyyyyyan
    Nov 12, 2020 at 15:20
  • thats not a questino for this site... maybe ask in StackOverflow itself... (its not a security question)
    – LvB
    Nov 12, 2020 at 15:22
  • 1
    FYI, this type of thing is called a duress code. Some burglar systems have that feature. I don't know about computers. Nov 12, 2020 at 15:23
  • 3
    Possibly useful links: Do any systems implement a Duress Code? and pam_duress Nov 12, 2020 at 15:26


You must log in to answer this question.

Browse other questions tagged .