LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2015, 12:38 PM   #1
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Rep: Reputation: 216Reputation: 216Reputation: 216
Full disk encryption: How to enable multiple password attempts in Grub


I am using full-disk encryption pretty much set up like described in this guide.

I works nicely except for the fact that I am bad at typing passwords. So occasionally I am typing it wrong and grub drops me to a rescue shell.

I then hit ctrl-alt-del to reboot, which feels unclean and is a bit annoying as it takes a couple of seconds. So I was wondering if there was a cleaner way, such as configuring grub to allow multiple attempts or something similar.

Obviously a minor issue, but if anyone knows a little trick please share it.
 
Old 04-12-2015, 12:41 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
I don't know how it could be done, although it may be possible to construct a script to add to /etc/grub.d/40_custom that would work.

As an alternative, grub can remember the last entry you booted from and use it as the default for the next boot. If you are interested, I found instructions at the Arch Wiki . Scroll down to Section 10.2 for the additions to make to the grub config to save and use the default password.

Don't forget to run update-grub as root for the changes to take effect.
 
1 members found this post helpful.
Old 04-12-2015, 01:05 PM   #3
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Original Poster
Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by bigrigdriver View Post
I don't know how it could be done, although it may be possible to construct a script to add to /etc/grub.d/40_custom that would work.
Don't think I understand the suggestion. At the time that I am typing the wrong password scripts in this directory would not be decrypted yet, so how would any changes in /etc change anything? I am probably missing something, can you elaborate a bit more?
Quote:
Originally Posted by bigrigdriver View Post
As an alternative, grub can remember the last entry you booted from and use it as the default for the next boot. If you are interested, I found instructions at the Arch Wiki . Scroll down to Section 10.2 for the additions to make to the grub config to save and use the default password.

Don't forget to run update-grub as root for the changes to take effect.
I have to type my luks password before the grub menu even shows.
The boot directory is part of the encrypted partition. So the boot entry is only chosen after I have typed the correct password. In fact I only have one system on this computer anyhow, and have the timeout set to zero. So I don't even get to see the grub menu anyways...
 
  


Reply

Tags
crypto, grub, multiple attempts, password


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
Passwordless Full Disk Encryption?? jimbo1954 Linux - Security 2 09-01-2013 06:33 PM
disk full, encryption dawee Ubuntu 2 07-03-2012 03:46 AM
Can full disk encryption be removed? Amdx2_x64 Linux - Security 4 11-15-2010 01:11 AM
Full disk encryption ourskool Linux - Security 1 01-23-2008 12:52 PM
Remote full disk encryption anonymous-coward Linux - Software 3 09-01-2007 07:25 AM


All times are GMT -5. The time now is 11:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration