0

I am trying to run gpg command (gnupg) in a Linux Azure Function but I get this error:

> ERROR: gpg: WARNING: unsafe permissions on homedir '/home/.gnupg'

I reduced my code to just be gpg --list-keys to simplify and the error persists. gpg -? runs fine so the command is in there. I tried to run gpg-agent --daemon first but then I get the same error for gpg-agent. All of this runs fine in Cloud Shell. Any ideas on why or what I should do? It's fine with me if you have an Azure Functions Windows solution, I just need to run PowerShell. Thanks

FranLegon
  • 87
  • 1
  • 2
  • 9

1 Answers1

0

I have created an Azure Function Premium plan with Runtime Stack .NET.

Navigate to the Azure Function => Advanced Tools => Go .

Run gpg --list-keys command either in SSH or Bash.

enter image description here

  • When I tried to run the same command again, I got the same permission error.

enter image description here

When I checked in the home/gnupg folder, Iam able to see the 2 created files.

cd ..
cd home/.gnupg
ls

enter image description here

Harshitha
  • 3,784
  • 2
  • 4
  • 9