aboutsummaryrefslogtreecommitdiff
path: root/FAQ
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-12-09 10:56:15 +0000
committerintrigeri <intrigeri@boum.org>2008-12-09 10:56:15 +0000
commitea9814ad2b78a7603d2b6f1b2916dc895aab9bd5 (patch)
tree48cfcf3c0a65fe48d2377daa4cc307c98da3d1d3 /FAQ
parenta76cc2f57605db3b3079baccd06c89466b6d2d30 (diff)
downloadbackupninja-ea9814ad2b78a7603d2b6f1b2916dc895aab9bd5.tar.gz
backupninja-ea9814ad2b78a7603d2b6f1b2916dc895aab9bd5.tar.bz2
FAQ: new file, with first Q/A for duplicity vs. sudo related issues
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ19
1 files changed, 19 insertions, 0 deletions
diff --git a/FAQ b/FAQ
new file mode 100644
index 0000000..16a411e
--- /dev/null
+++ b/FAQ
@@ -0,0 +1,19 @@
+Q: duplicity works fine when run standalone, but complains about gpg
+"public key not found" when run from backupninja
+
+A: We bet you're using sudo to run both duplicity and backupninja, and have been
+using sudo as well when generating the GnuPG key pair used by duplicity.
+
+Quick fix: generate a new GnuPG key pair in a root shell, or using
+"sudo -H" instead of plain sudo.
+
+Another solution: import the GnuPG keypair into the root user's keyring, taking
+care of running "gpg --update-trustdb" in a root shell or using "sudo -H"
+afterwards, in order to tag this keypair as "ultimately trusted".
+
+Detailed explanation: sudo does not change $HOME by default, so GnuPG saved the
+newly generated key pair to your own keyring, rather than to the root user's
+keyring. Running "sudo duplicity" hides the problem, as it uses your own
+keyring. Running "sudo backupninja" reveals the problem, as backupninja uses
+"su" to make sure it runs duplicity in a real root environment, i.e. using the
+root user's GnuPG keyring.