How to permission GnuPG to use with Flask in Ubuntu?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I have a Flask app running on Apache. I use Flask-GnuPG and I am receiving the gpg: WARNING: unsafe permissions on homedir error once I try to use gpg



Following this post I have permissioned the GPG_HOME_DIR with:



sudo chown -R www-data:www-data /path/to/gnupg
chmod 600 /path/to/gnupg/gpg.conf


And I also removed and re-created the gnupg directory.



Considering Flask opens a subprocess to launch GnuPG, is www-data the right user to permission?










share|improve this question





















  • Also asked on SO
    – unor
    Feb 11 at 17:08














up vote
0
down vote

favorite












I have a Flask app running on Apache. I use Flask-GnuPG and I am receiving the gpg: WARNING: unsafe permissions on homedir error once I try to use gpg



Following this post I have permissioned the GPG_HOME_DIR with:



sudo chown -R www-data:www-data /path/to/gnupg
chmod 600 /path/to/gnupg/gpg.conf


And I also removed and re-created the gnupg directory.



Considering Flask opens a subprocess to launch GnuPG, is www-data the right user to permission?










share|improve this question





















  • Also asked on SO
    – unor
    Feb 11 at 17:08












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a Flask app running on Apache. I use Flask-GnuPG and I am receiving the gpg: WARNING: unsafe permissions on homedir error once I try to use gpg



Following this post I have permissioned the GPG_HOME_DIR with:



sudo chown -R www-data:www-data /path/to/gnupg
chmod 600 /path/to/gnupg/gpg.conf


And I also removed and re-created the gnupg directory.



Considering Flask opens a subprocess to launch GnuPG, is www-data the right user to permission?










share|improve this question













I have a Flask app running on Apache. I use Flask-GnuPG and I am receiving the gpg: WARNING: unsafe permissions on homedir error once I try to use gpg



Following this post I have permissioned the GPG_HOME_DIR with:



sudo chown -R www-data:www-data /path/to/gnupg
chmod 600 /path/to/gnupg/gpg.conf


And I also removed and re-created the gnupg directory.



Considering Flask opens a subprocess to launch GnuPG, is www-data the right user to permission?







permissions apache2 gnupg flask






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 9 at 16:24









Pythonic

1012




1012











  • Also asked on SO
    – unor
    Feb 11 at 17:08
















  • Also asked on SO
    – unor
    Feb 11 at 17:08















Also asked on SO
– unor
Feb 11 at 17:08




Also asked on SO
– unor
Feb 11 at 17:08















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004608%2fhow-to-permission-gnupg-to-use-with-flask-in-ubuntu%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004608%2fhow-to-permission-gnupg-to-use-with-flask-in-ubuntu%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491