<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5854&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Luks decrypt home on boot with key and fallback password]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5854</link>
		<description><![CDATA[The most recent posts in Luks decrypt home on boot with key and fallback password.]]></description>
		<lastBuildDate>Tue, 15 Aug 2023 16:53:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43352#p43352</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>If i do not plug in the stick, then the boot process runs fine to the end but of course without /home mounted....</p></div></blockquote></div><p>Maybe a script started by rc.local at the end of boot that checks to see if /home is mounted, and if it is not, it runs &#039;cryptsetup open &lt;whatever&gt;&#039; and asks for the password. If your boot process without the usb stick is landing at a graphical login screen, you&#039;ll probably need to disable the display manager. Maybe the same script that mounts /home could start the DM, too.</p><p>Edit: Something like this. I didn&#039;t test this but I think it will work. Adjust the names for your setup.Disable the display manager in runlevel 2 using update-rc.d or sysv-rc-conf</p><div class="codebox"><pre><code>#!/bin/sh

if grep -q &#039;/dev/mapper/&lt;name&gt;&#039; /proc/mounts ; then
	/etc/init.d/&lt;display-manager&gt; start
else
	cryptsetup open /dev/whatever  &lt;name&gt;
	mount /dev/mapper/&lt;name&gt;  &lt;mountpoint&gt;
	/etc/init.d/&lt;display-manager&gt; start
fi

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 15 Aug 2023 16:53:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43352#p43352</guid>
		</item>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43346#p43346</link>
			<description><![CDATA[<p>yes, seems that is also my way to use keyfile on stick and if the key is lost/damaged i fix it with the password slot and a live CD, not fancy. I feel I do not trust the keyscript-thing</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>This page might have the answer. It looks like you have to use a keyscript. <a href="https://stackoverflow.com/questions/19713918/how-to-load-luks-passphrase-from-usb-falling-back-to-keyboard" rel="nofollow">https://stackoverflow.com/questions/197 … o-keyboard</a></p><p>I&#039;ve never done that. I use a keyfile, and if the keyfile is doesn&#039;t work, I have a keyslot with a passphrase that I can use to fix it (make a new keyfile) after booting a live-CD or live-USB.</p><p>.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (deutschem)]]></author>
			<pubDate>Tue, 15 Aug 2023 14:04:48 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43346#p43346</guid>
		</item>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43345#p43345</link>
			<description><![CDATA[<p>yes, sorry I wrote it unclear, i want the fallback on boot (Boot-&gt;Stick is plugged-&gt;encrypt with keyfile (this works)), now if stick is not plugged in i want boot-&gt; ask for password (in my case in slot 0)<br />If i do not plug in the stick, then the boot process runs fine to the end but of course without /home mounted....</p><div class="quotebox"><cite>rolfie wrote:</cite><blockquote><div><p>Ok, then you have your fallback option already. I am not 100% sure how that works in your case, I am used to use full disk encryption.</p><p>What happens in your case when the key stick isn&#039;t plugged in? Do you end up in the initramfs?</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (deutschem)]]></author>
			<pubDate>Tue, 15 Aug 2023 14:01:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43345#p43345</guid>
		</item>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43321#p43321</link>
			<description><![CDATA[<p>This page might have the answer. It looks like you have to use a keyscript. <a href="https://stackoverflow.com/questions/19713918/how-to-load-luks-passphrase-from-usb-falling-back-to-keyboard" rel="nofollow">https://stackoverflow.com/questions/197 … o-keyboard</a></p><p>I&#039;ve never done that. I use a keyfile, and if the keyfile is doesn&#039;t work, I have a keyslot with a passphrase that I can use to fix it (make a new keyfile) after booting a live-CD or live-USB.</p><p>.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 14 Aug 2023 16:10:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43321#p43321</guid>
		</item>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43319#p43319</link>
			<description><![CDATA[<p>Ok, then you have your fallback option already. I am not 100% sure how that works in your case, I am used to use full disk encryption.</p><p>What happens in your case when the key stick isn&#039;t plugged in? Do you end up in the initramfs?</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 14 Aug 2023 15:37:20 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43319#p43319</guid>
		</item>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43317#p43317</link>
			<description><![CDATA[<p>in my LUKS volume i have 2 slots, one (slot 0) with a password and the second (with lukdAddKey) with the keyfile.</p>]]></description>
			<author><![CDATA[dummy@example.com (deutschem)]]></author>
			<pubDate>Mon, 14 Aug 2023 12:30:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43317#p43317</guid>
		</item>
		<item>
			<title><![CDATA[Re: Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43315#p43315</link>
			<description><![CDATA[<p>To make sure: you have not assigned a password to the encrypted /home as first step?</p><p>There is an option to cryptsetup named luksAddKey. With this option you can add further keys (either passwords or keyfiles) but this will ask for an already existing key. I have always used a passphrase as first key, and have no idea how to add a key with a keyfile as only option.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 14 Aug 2023 07:19:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43315#p43315</guid>
		</item>
		<item>
			<title><![CDATA[Luks decrypt home on boot with key and fallback password]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=43314#p43314</link>
			<description><![CDATA[<p>Hi,</p><p>i &#039;ve configure successfully configured that my home partition was unlocked with a plugged in usb stick.<br />but i dont know how to configure the fallback (if stick is not pugged in use password).</p><p>the most hints are for systemd for ex:<br /><a href="https://forums.debian.net/viewtopic.php?t=152061" rel="nofollow">https://forums.debian.net/viewtopic.php?t=152061</a></p><p>I use SysVinit</p><p>unplugged usb:<br />Sun Aug 13 21:44:58 2023: Starting remaining crypto disks...crypt_home (starting)...Invalid key path<br />Sun Aug 13 21:44:58 2023: Cannot seek to requested keyfile offset.<br />Sun Aug 13 21:44:58 2023: Invalid key path<br />Sun Aug 13 21:44:58 2023: Cannot seek to requested keyfile offset.<br />Sun Aug 13 21:44:58 2023: Invalid key path<br />Sun Aug 13 21:44:58 2023: Cannot seek to requested keyfile offset.<br />Sun Aug 13 21:44:58 2023: crypt_home (failed)...^[[31mfailed.^[[39;49m<br />Sun Aug 13 21:44:58 2023: done.</p><p>thank you</p><p>regards</p>]]></description>
			<author><![CDATA[dummy@example.com (deutschem)]]></author>
			<pubDate>Mon, 14 Aug 2023 06:06:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=43314#p43314</guid>
		</item>
	</channel>
</rss>
