You are not logged in.

#1 2016-01-25 15:36:42

lokesh987
Member
Registered: 2014-12-15
Posts: 43

Sakaki's EFI Guide: GPG keyfile error

I am on my wit's end with GPG. I'm running round in circles.

I am trying since hours to create a keyfile on an external drive according to point 2 at Sakaki's EFI Install Guide.
This is what I did:

export GPG_TTY=$(tty) 
dd if=/dev/urandom bs=8388607 count=1 | gpg --symmetric --cipher-algo AES256 --output <mountpoint>/luks-key.gpg
pinentry: Enter passphrase
gpg: can't create 'mount/luks-key.gpg': Permission denied
gpg: symmetric encryption of '[stdin]' failed: Permission denied

The only way I can create the keyfile is to do that somewhere in my home directory. However, Sakaki's guide does it directly onto the external drive. It just does not work in my hands.

As soon as I mount the external drive (fat32 formatted), it is taken over by root. GPG on the other hand will not run as root. A classical catch22?

Cheers
Lokesh

Offline

#2 2016-01-26 03:36:07

charli3
Member
Registered: 2015-06-01
Posts: 45

Re: Sakaki's EFI Guide: GPG keyfile error

Did you look at the two factor encryption authentication in the wiki? https://wiki.archlinux.org/index.php/Dm … d_Keyfiles

Offline

#3 2016-01-30 17:26:51

lokesh987
Member
Registered: 2014-12-15
Posts: 43

Re: Sakaki's EFI Guide: GPG keyfile error

Hmmm, feel a bit embarrassed … neutral

I did not understand that gpg is protecting also from the superuser, therefore it is important to consider the account that was used to install gnupg and where it is configured. "Sudo" or "su root" in this particular case is not superior than the user, but different. Which means they will fail on any user's gpg created files/folders.

Sakaki's guide is using the root account of the system bootet from USB, which has its gpg configuration files under /root. I by contrast fired the command from my account on an fix installed system, this of course will not work on an external drive owned by root.

Thanks,
Lokesh

Offline

Board footer

Powered by FluxBB