FOSSPicks
Security tool
PAM Duress
A few years ago, I was doing quite a bit of traveling between the US and Europe with my usual array of technology. I was worried about what I should do if I was forced to unlock a device and either hand that device over or permit the device to be searched. While I wasn't involved in anything that might be considered investigative journalism, I did want to set a good example and behave appropriately if anything like this happened. One impractical solution I envisaged was letting someone else encrypt my devices, so I could honestly say I didn't know how to unlock them (with the intention of asking that trusted someone for the keys when I arrived safely). Another more practical option was to take devices completely empty of anything, setting them up and erasing them as I arrived and departed again. Of course, I was never organized enough to do either of these things.
If PAM Duress had been around, I would have gone for this solution. The pluggable authentication module (PAM) system is at the heart of granting access to your Linux devices, and PAM Duress is a module that can trigger scripted behavior when you enter a password that's different from the one you'd normally use to unlock your data and device. These duress scripts can delete all your data, automatically send a notification to someone, or do whatever other function you desire. Installation is relatively straightforward and similar to any other PAM module. The scripts that are executed when a certain password is entered are signed and cannot be tampered with, although there is a testing function that can ensure the module is working correctly before deleting your data (for example). Everything works as expected. This may be a project with a very specific objective. If it appeals to you, PAM Duress performs a brilliant and essential function.
Project Website
https://github.com/nuvious/pam-duress
Usage monitor
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.