Help moving pass to new computer
ಚಿರಾಗ್ ನಟರಾಜ್
chiraag.nataraj at protonmail.com
Wed Sep 25 20:59:54 CEST 2019
To second this, I had to restore my password store from a backup a while ago, and it worked fairly easily. I ended up copying my GPG key from the backup and downloading my password store using git, and it pretty much "Just Worked."™
You _should_ have been able to just copy .gnupg and .password-store, restart gpg-agent (if it was already running), and try decrypting stuff.
One more thing to try (to make sure GPG is setup correctly) is to try to manually decrypt one of the password files (e.g. gpg -d .password-store/path/to/sample/gpg/file.gpg). If that works, the problem is with pass. Otherwise, GPG is messed up and you need to see what's going on there.
HTH!
- Chiraag
--
ಚಿರಾಗ್ ನಟರಾಜ್
PhD Candidate in Engineering at Brown University
Pronouns: he/him/his
Email: chiraag.nataraj at protonmail.com
Website: http://chiraag.nataraj.us
25/09/19 20:52 ನಲ್ಲಿ, Carl Michael Skog <cmskog at gmail.com> ಬರೆದರು:
> Den ons 25 sep. 2019 kl 20:29 skrev Sam Stone <[1]sam at talhoffer.org>:
>
> Hi All,
>
> 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.
>
> I ran pass init passwords at xxxxx.xxx. The new .gpg-id
>
> contains one line with "passwords at 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.
>
>
> I have tried copying the orginal .gpg-id file to the new .password-store
> dir.
>
> I have tried pass init passwords at xxxxx.xxx.
>
>
> I have tried pass init hex (in lower case)
>
>
> I have tried pass init (in upper case)
>
>
> All the above result in a No secret key error.
>
> I feel like I'm overlooking something obvious or making a rather simple
> mistake.
>
>
> I hope I'm not totally fucked.
>
>
> Any help would be very much appreciated.
>
>
> Did you try:
> export GNUPGHOME=/your/usb/drives/path/to/the/old/.gnupg
> export PASSWORD_STORE_DIR=/your/usb/drives/path/to/the/old/.password-store
> That should mimic you old installation.
> If that is working, just plain cp the old stuff(.gnupg and .password-store) to
> your new home directory.
>
> Regards,
> Carl Michael Skog
>
> References:
>
> [1] mailto:sam at talhoffer.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - chiraag.nataraj at protonmail.com.asc.pgp
Type: application/pgp-key
Size: 2256 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20190925/806877d2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 233 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20190925/806877d2/attachment.asc>
More information about the Password-Store
mailing list