"3124:Permission Denied" when encrypting/decrypting with PGP Command Line
search cancel

"3124:Permission Denied" when encrypting/decrypting with PGP Command Line

book

Article ID: 374893

calendar_today

Updated On:

Products

PGP Command Line PGP Encryption Suite PGP Key Management Server PGP Key Mgmt Client Access and CLI API PGP SDK Desktop Email Encryption Drive Encryption Encryption Management Server Endpoint Encryption File Share Encryption Gateway Email Encryption

Issue/Introduction

When running a command either manually or through an automation process or script, a permission denied error message is returned.

Environment

Windows

Cause

Your command is being executed where the current working directory is a location where you do not have permission to create new files. The current working directory is used to produce TMP files during the encryption process regardless of original file or output file locations.

Resolution

Change the directory of your current working directory. You can add a command at the beginning of your script to change the directory, or run the script from an alternate location.

In the example, our current working directory was C:\Windows, a location typically disallowed from creating new files without elevated privilege. After adding a change directory command to the script to an allowed location, the output was successful: