Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175110

sudo + gpg - howto?

From kjonca@poczta.onet.pl (Kamil Jońca)
Newsgroups linux.debian.user
Subject sudo + gpg - howto?
Date 2016-11-27 10:40 +0100
Message-ID <sI46d-2vH-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


I have gpg-encrypted backups made by amanda (gnutar).
Decrypting was done by call gpg with --passphrase-fd option.

Recently I have to see some backup contensts
and as usual I wrote:
--8<---------------cut here---------------start------------->8---
sudo amrecover ...
--8<---------------cut here---------------end--------------->8---
but without success.
Some investigation suggests that gpg-agent started as 'backup' user
1. completely ignores passphrase-fd/passphrase-file option.
2. cannot run pinentry (my guess is that tty is owned by user kjonca and
pinentry should be as user backup)


So my questions are:
1. is it possible to use passphrase-fd/passphrase-file options?
2. if not, how can I configure gpg/gpgagen/sudo/whatever in order to
enter passphrase as sudo target  user?
KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
można nie mieć nawet żadnego sensownego argumentu, a dzięki odpowiedniej
gestykulacji stworzyć poczucie wiarygodności.
Puls Biznesu

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

sudo + gpg - howto? kjonca@poczta.onet.pl (Kamil Jońca) - 2016-11-27 10:40 +0100
  Re: sudo + gpg - howto? Michael Luecke <mluecke@mailbox.org> - 2016-11-27 12:40 +0100
    Re: sudo + gpg - howto? kjonca@poczta.onet.pl (Kamil Jońca) - 2016-11-28 14:20 +0100

csiph-web