restoring ~/.gnupg folder

Charles Howse chowse at charter.net
Wed Feb 4 10:10:02 CET 2004


Hi,
I recently installed Fedora Core 1 and kgpg.
I generated a keypair and uploaded it to the mit keyserver.
Everything was working great.

I then fubar'd my Fedora install somehow, and decided the best option to fix 
it was to re-install Fedora.
Before I did that, I saved my ~/.gnupg directory to a cd, exported my key to a 
file, and generated a revocation certificate to a file.
After the re-install, I restored my ~/.gnupg directory from cd, and imported 
the saved key.

Apparently, that was a bad decision.  Now, when I try to import another key, 
say the Microsoft pgp key, it won't work because it can't find a writable 
keyring.
Looking at the list of files in ~/.gnupg, it looks like maybe I should chmod 
644 a few of them.

[root at moe root]# ll /home/charles/.gnupg
total 32
-r--r--r--    1 charles  charles      8075 Jan 30 20:52 gpg.conf
-r--r--r--    1 charles  charles       894 Jan 31 15:05 gpgkey.asc (my saved 
key)
-r--r--r--    1 charles  charles       902 Jan 31 14:19 pubring.gpg
-r--r--r--    1 charles  charles       600 Feb  2 13:43 random_seed
-r--r--r--    1 charles  charles       279 Jan 31 15:11 revcert.asc (my saved 
revocation certificate)
-r--r--r--    1 charles  charles      1040 Jan 31 14:19 secring.gpg
-r--r--r--    1 charles  charles      1280 Jan 31 14:22 trustdb.gpg

Now to my questions:
What is the proper way to save my secret key to a floppy?
Can I recover from the present situation, and if so, how?

Please CC: me, I'm not subscribed to the list.
Thanks in advance!
-- 
Charles Howse
Jackson, TN





More information about the Gnupg-users mailing list