26
submitted 7 hours ago by egsaqmojz@lemmy.ml to c/linux@lemmy.ml

has anyone had any luck encrypting their root partition and unlocking it with a yubikey on boot? im tired of typing in the passphrase on my laptop on boot.

top 5 comments
sorted by: hot top new old
[-] MalReynolds@piefed.social 2 points 2 hours ago

You can just use any USB drive with a couple of kernel parameters. Don't see what YubiKey is bringing to the table here. If you're use case is good with that you can also install pam_usb and not have to type sudo passwords either. Remove the key and (hard if needed) power off and you're back to a normal secure system. Been doing it for years myself.

[-] eldavi@lemmy.ml 2 points 4 hours ago

My cats kept triggering the touch sensor on the yubikey I used to have and I marvel that other people w cats don't have this problem 😝

[-] codemichael@lemmy.world 2 points 3 hours ago

You can disable the default otp behavior if all you're doing is challenge-response

[-] ag10n@lemmy.world 8 points 6 hours ago
[-] Ooops@feddit.org 1 points 4 hours ago* (last edited 4 hours ago)

Note on that guide: using crypttab.initramfs is deprecated. Use the standard crypttab with x-initrd.attach-option instead (although I think it's not removed yet and still throwing a warning telling you exactly that).

this post was submitted on 05 Dec 2026
26 points (96.4% liked)

Linux

69010 readers
1396 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS