What is the default GPG folder/key permission?

Right after we generate a GPG Key, what is that default permissions (for the folder, and the files)?

The .gnupg directory should have owner rwx, nothing else. In octal, 700.

1 Like

.gnupg directory:

drwx------. 1 alice alice 134  2. Sep 10:48 .gnupg

files in .gnupg:

drwx------. 1 alice alice  134  2. Sep 10:48 .
drwx------. 1 alice alice  562  2. Sep 10:47 ..
drwx------. 1 alice alice   88  2. Sep 10:48 openpgp-revocs.d
drwx------. 1 alice alice  176  2. Sep 10:48 private-keys-v1.d
-rw-rw-r--. 1 alice alice 1983  2. Sep 10:48 pubring.kbx
-rw-------. 1 alice alice   32  2. Sep 10:47 pubring.kbx~
-rw-------. 1 alice alice 1240  2. Sep 10:48 trustdb.gpg
1 Like