Using pass with an existing databaseSolutions to problems during pass database migration
Journal Entry 200614 - Sunday
Struggled to properly initialise pass. Fixed the problem by transferring ~/.gnupg from my old machine to the new one.
Journal Entry 200615 - Monday
Managed to remove pass permissions warning:
gpg: WARNING: unsafe permissions on homedir '/home/rostiger/.gnupg'
by setting the folder permissions to 700 using
sudo chmod 700 .gnupg/
I set all containing files to 600 by entering the .gnupg folder and using sudo chmod 600 *
This resulted in an error message when using pass:
gpg: decryption failed: No secret key
Fixed the error by setting permissions for pubring.kbx and private-keys-v1/
I used nautilus for this because I didn't know the number codes
drwx------ private-keys-v1.d/ (Create and Delete Files) -rw-rw-r-- pubring.kbx (Read & Write for Owner and Group, Read for Others)