--gpg-options unused with some commands

Asked by Mauro S on 2017-10-16

Hi,

I'm not firing a bug because I have the doubt that this could be the programmer's expected behavior, or this could be a RFC instead of a bug.

If I pass --gpg-options to duplicity commands that don't do an encryption/decryption, these args never reach gpg command.

I found this behavior in a own-maked duplicity script, where before do an encryption I issue a cleanup command like this:

HOME="/home/johndoe"
duplicity cleanup --gpg-options="--no-permission-warning" --force $TARGET_DIR

I want to pass --no-permission-warning to gpg because this script is executed by cron every day (so it is run as root user) to backup some folders of johndoe's home: in this case, without this flag, gpg complains with "gpg: WARNING: unsafe ownership on homedir" message.

I'm not a python expert, but as far as I can see this message comes out from command to get mayor version of gpg (class GPGProfile, method get_gpg_major() in file gpg.py).

What do you think about this?
Thanks in advance

Mauro

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
2017-10-16
Last reply:
2017-10-16

Hi,

You are correct, the get version call does not supply user options.

Please submit a bug, or convert this question to a bug report.

...Thanks,
...Ken

On Mon, Oct 16, 2017 at 8:23 AM, Mauro S <
<email address hidden>> wrote:

> New question #659529 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/659529
>
> Hi,
>
> I'm not firing a bug because I have the doubt that this could be the
> programmer's expected behavior, or this could be a RFC instead of a bug.
>
> If I pass --gpg-options to duplicity commands that don't do an
> encryption/decryption, these args never reach gpg command.
>
> I found this behavior in a own-maked duplicity script, where before do an
> encryption I issue a cleanup command like this:
>
> HOME="/home/johndoe"
> duplicity cleanup --gpg-options="--no-permission-warning" --force
> $TARGET_DIR
>
> I want to pass --no-permission-warning to gpg because this script is
> executed by cron every day (so it is run as root user) to backup some
> folders of johndoe's home: in this case, without this flag, gpg complains
> with "gpg: WARNING: unsafe ownership on homedir" message.
>
> I'm not a python expert, but as far as I can see this message comes out
> from command to get mayor version of gpg (class GPGProfile, method
> get_gpg_major() in file gpg.py).
>
> What do you think about this?
> Thanks in advance
>
> Mauro
>
> --
> You received this question notification because your team duplicity-team
> is an answer contact for Duplicity.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~duplicity-team
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~duplicity-team
> More help : https://help.launchpad.net/ListHelp
>

Mauro S (mauro-salvini) said : #2

Hi,,
thank you. I will subit a bug.

Thanks
Mauro

Can you help with this problem?

Provide an answer of your own, or ask Mauro S for more information if necessary.

To post a message you must log in.