LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-21-2020, 06:58 AM   #1
LBuhler
LQ Newbie
 
Registered: Apr 2020
Location: The Netherlands
Distribution: Ubuntu
Posts: 11

Rep: Reputation: Disabled
Keyscript for ubuntu to unlock a luks partition with a keyfile and fallback to a passphrase


Hi there fine folks,

I just installed a new Ubuntu 20.04 server and it's working like a charm after some tweaking. It's a RAID 1 setup with encrypted / and unencrypted /boot. I'm able to use a keyfile on an USB drive to unlock the root partition, but if the drive isn't present it doesn't revert to asking for a passphrase. I would like to be able to have the system fallback on a passphrase after a timeout or something. I've seen some posts on the internet where people made functioning keyscripts to deal with this issue. Most of them are a bit dated. Does anyone in here have a good keyscript up and running that checks for the keyfile and reverts back to a passphrase if the key is not present? A reference to a relevant thread would also suffice, since I don't want to take up too much of all our precious times.

Kind regards,

Laurens
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LUKs partition won't unlock at boot 'no key available with this passphrase' atomiccomp Linux - Newbie 2 03-24-2020 09:29 PM
How to have luks encryption with keyfile OR passphrase (efi full disk encryption including boot)? byroncollege Linux - Security 2 03-30-2017 07:45 AM
Unlock LUKS encrypted root system with keyfile on USB device Märk Owen Linux - Security 7 02-10-2017 12:57 PM
[SOLVED] Can't unlock LUKS volume with a keyfile during boot natharran Slackware 3 02-27-2013 02:00 PM
LXer: Automatically Unlock LUKS Encrypted Drives With A Keyfile LXer Syndicated Linux News 0 07-09-2008 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration