SCP/SFTP jobs are failing when trying to download a file from a local machine to a UNC path and vice versa
search cancel

SCP/SFTP jobs are failing when trying to download a file from a local machine to a UNC path and vice versa

book

Article ID: 12641

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent

Issue/Introduction

When using SCP/SFTP jobs to download files from a local machine to a UNC path and vice versa, they are failing with "Access is denied" errors.  Why are SCP/SFTP jobs failing with "Access is denied" errors when downloading files from a local machine to a UNC path and vice versa?

Environment

CA Workload Automation AE

Resolution

The owner of the executable file, cybAgent.bin, needs to have appropriate permissions on the source file (upload) or the target file (download). 

Make sure those permissions are in place. When the job runs, the owner of the agent process that does the file transfer requires the correct permissions to be set. 

Therefore, the logon of the service of the agent needs to have write permission on the target file. 

By default, FTP/SFTP/SCP are internal to the agent, so they are executed as the user that started the agent. 

Additional Information

Workaround

1.- Set the appropriate permissions on the source file (upload) or target file (download) so the owner of the cybAgent.bin executable process can access it.

or

2.- Install a separate agent that runs as a specified user, and you use that agent just for these FTP/SFTP/SCP jobs.