<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den ons 25 sep. 2019 kl 20:29 skrev Sam Stone <<a href="mailto:sam@talhoffer.org">sam@talhoffer.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi All,<br>
<br>
My old Gentoo box died. I'm trying to install pass on my new Gentoo box. I managed to copy my old home dir to a usb. I can see password-store directory and my gnupg directory. gpg --list keys shows the key I used to originally encrypt my password. I have also installed the gnupg package.<br>
<br>
I ran pass init passwords@xxxxx.xxx. The new .gpg-id <br>
<br>
contains one line with "passwords@xxxxx.xxx". The original.gpg-id file on the usb contains the correct hex id of the key. I copied the contents orginal .password-store dir into the new one. When I try to decrypt a password I get a "gpg:decryption failed: No secret key" error. I get this error regardless of which of the 2 entries are present in the .gpg-id file. Every time I've tried to decrypt there has been only .gpg-id entry. <br>
<br>
<br>
I have tried copying the orginal .gpg-id file to the new .password-store dir.<br>
<br>
I have tried pass init passwords@xxxxx.xxx. <br>
<br>
<br>
I have tried pass init hex (in lower case) <br>
<br>
<br>
I have tried pass init (in upper case) <br>
<br>
<br>
All the above result in a No secret key error.<br>
<br>
I feel like I'm overlooking something obvious or making a rather simple mistake. <br>
<br>
<br>
I hope I'm not totally fucked. <br>
<br>
<br>
Any help would be very much appreciated.<br></blockquote><div><br></div><div><div>Did you try:</div><div>export GNUPGHOME=/your/usb/drives/path/to/the/old/.gnupg</div><div>export PASSWORD_STORE_DIR=/your/usb/drives/path/to/the/old/.password-store</div><div>That should mimic you old installation.</div><div>If that is working, just plain cp the old stuff(.gnupg and .password-store) to your new home directory.</div></div><div> </div>Regards,</div><div class="gmail_quote">Carl Michael Skog<br></div></div>