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

Document ID : KB000012641
Last Modified Date : 14/02/2018
Show Technical Document Details
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. 

 

Question:

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 r11.3x
Answer:

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.