How to fix unsafe ownership .gnupg in OTRS / Znuny

In this article you will learn how to fix a common issue with gnupg gpg/pgp integration in OTRS in Ubuntu 18.04 and 20.04.
The log (error) message is typically:

gpg: WARNING: unsafe ownership on homedir '/opt/otrs/.gnupg'

The issue is your folders permission of /opt/otrs/.gnupg and could be fixed with

chown -R www-data.www-data /opt/otrs/.gnupg
find /opt/otrs/.gnupg -type f -exec chmod 600 {} \;
find /opt/otrs/.gnupg -type d -exec chmod 700 {} \;

And your log entries shall be gone.

Related articles

Related articles may be:

Do you need help with Znuny / OTRS?
We have lot of experiences with OTRS and Znuny and can help you with your issues. Get in touch with us and we will check if and how we can help you.

Leave a Comment

Do you need help with Znuny / OTRS?​

We have lot of experiences with OTRS and Znuny.
We can help you with your issues to solve them.

From giving you support up to implementing integrations to your existing systems.

Get in touch with us and we will check if and how we can help you.​

Get OTRS/Znuny/OTOBO Support
Step 1 of 2
To get a quick and efficient clearance of your needs, our experts will call you.
We communicate in English.
Maybe we can communicate in your native language too. So please let us know your native written and spoken language.

Your environment

We have different partners for different tasks and company sizes.
To assign you the right partner and thus the proper system engineers, we would like to ask you for more details about your environment.
The more details we get the quicker we can narrow down to the right persons.