Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Change LUKS password prompt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
justintheknick
n00b
n00b


Joined: 20 May 2010
Posts: 1

PostPosted: Thu May 20, 2010 12:30 am    Post subject: Change LUKS password prompt Reply with quote

Is there any way to change the LUKS password prompt, from "Enter LUKS passphrase for sda..".

I have full system encryption, and when booted I'd rather the prompt be custom, such as:
"No Operating System found", just for a bit of plausible deniability to the casual user.

I've had a look in and around certain config files looking for this string, but to no avail.
Thanks.
Back to top
View user's profile Send private message
Shazam
Apprentice
Apprentice


Joined: 23 Nov 2004
Posts: 191
Location: Germany

PostPosted: Sun May 30, 2010 10:05 pm    Post subject: Reply with quote

I haven't used LUKS in quite some time, but I think you have two options to accomplish your goal:

first: download the source code and find the phrase in there and change it to whatever you need it. Then compile and install it by hand. This could break consistencies with your packages tho, and is probably the more hackerish way.

second: you create a wrapper script to cryptsetup which is called instead cryptsetup. Something that will display the message of your choice, reads the input from the user and then calls cryptsetup with redirecting the output to a file or /dev/null. A check to wether or not it has been successful, is probably a good idea, too.

I don't know if that helped, but if you need some more details let me know, I haven't worked out the details. As said, haven't been using LUKS for quite some time, now.
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Sun May 30, 2010 11:15 pm    Post subject: Reply with quote

Plausible deniability to the casual user (is not really my goal, but) on my system looks like this:

It boots Windows. :lol:

Linux only if my USB key is attached... I need the USB anyway for true full disk encryption... and it's useful since I also have Live CDs on there... so :) 8)

The problem with the No Operating System Found in the cryptsetup binary is that at that point, Linux kernel already booted and produced output messages, and even with quiet option you don't get rid of them all, so "No Operating System" is simply not plausible at this stage.

How about an empty read prompt where you have to enter some word before the real password prompt appears. That could be done easily and wouldn't require any modification (other than to your initramfs init script)...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum