1 |
On 14/12/16 13:53, Mike Gilbert wrote: |
2 |
> On Wed, Dec 14, 2016 at 7:56 AM, Mart Raudsepp <leio@g.o> wrote: |
3 |
>> Ühel kenal päeval, K, 14.12.2016 kell 15:35, kirjutas Andrew Savchenko: |
4 |
>>> This is not a workaround, but officially recommended practice, from |
5 |
>>> man gpg-agent: |
6 |
>>> |
7 |
>>> You should always add the following lines to your .bashrc or |
8 |
>>> whatever initialization file is used for all shell invocations: |
9 |
>>> |
10 |
>>> GPG_TTY=$(tty) |
11 |
>>> export GPG_TTY |
12 |
>> Then the packages or eselect pinentry or whatever should be taking care |
13 |
>> of it, not have users have to mess with .bashrc to have stuff work. |
14 |
> This is not practical. |
15 |
> |
16 |
> Adding it to the global /etc/bashrc is a bad idea. It would slow down |
17 |
> every shell startup (fork/exec), even for users who do not actively |
18 |
> use gpg (like root). |
19 |
> |
20 |
> Also, there is no way to know what shell each gpg user will be using. |
21 |
> |
22 |
Sounds to me like a perfect candidate for an elog/einfo, no?? |