Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2FA and 1FA & crypttab #31

Open
sniper7kills opened this issue Aug 10, 2018 · 5 comments
Open

2FA and 1FA & crypttab #31

sniper7kills opened this issue Aug 10, 2018 · 5 comments
Labels

Comments

@sniper7kills
Copy link

First off I just want to say amazing package; thank you so much for configuring this!

Secondly; I have a handful of encrypted drives, I wanted to inquire if it was possible to decrypt more than just the root drive while booting by setting an option in /etc/crypttab file to use the yubifde package instead of prompting for a password.

Finally I wanted to inquire if it is possible to use both 2FA and 1FA depending on the drive.
I.E. ideally I would like my / partition to be 2FA, but then have my /home partition automatically decrypted using 1FA and a password stored on my / partition instead of a password stored in the config.

Again Love the package, thank you!

@agherzan
Copy link
Owner

Hey. We haven't explored that level of flexibility yet. Mainly because this hasn't been a use case for us. I'd say that at this point the fastest option would be to try to look into it and maybe send a PR.

@Vincent43
Copy link
Collaborator

For /etc/crypttab support and decrypting multiple devices we would need to add systemd compatible hook.

@Vincent43
Copy link
Collaborator

Alternatively you can try to copy ykfde hook as ykfde-home and add both to mkinitcpio then adjust YKFDE_LUKS_DEV, YKFDE_DISK_UUID, YKFDE_LUKS_NAME, YKFDE_CHALLENGE, YKFDE_CHALLENGE_PASSWORD_NEEDED by appending suffix -HOME to them inside ykfde-home then add them with relevant values to /etc/ykfde.conf.

@hughwilliams94
Copy link

Just to say, I've tried this ykfde-home solution and it works pretty well apart from having to enter my challenge password twice during startup. Can you think of any way that I'd be able to use manual mode for both devices but only have to enter my password once?

@Vincent43
Copy link
Collaborator

Vincent43 commented Aug 25, 2021

There is no easy way to achieve that. One option is to write systemd-compatible hook, the other add something like decrypt_keyctl script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants