Control-M for Advanced File Transfer job fails with:  ftp reply --->550 Command STOR failed: Access denied

Version 5
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M for Advanced File Transfer


    COMPONENT:

    Control-M for Advanced File Transfer


    APPLIES TO:

    All versions of Control-M for Advanced File Transfer



    PROBLEM:

     

    - Control-M for Advanced File Transfer job defined to transfer file to a Windows machine using ftp protocol (not sftp)
    - Control-M for AFT job fails with the following message on the job sysout:
      Open data connection for command: STOR <filename>
      ftp reply --->550 Command STOR failed: Access denied
      FTP command failed while opening data connection. command:STOR <filename>

      



     

     


    CAUSE:

    Some ftp server are configured as Unix-like even when installed under Windows. 550 is an FTP Server return code: Requested action not taken. File unavailable (e.g., file not found, no access).


    SOLUTION:

    Verify if the Windows FTP Server is configured as UNIX-like:
    1. Log on to the Control-M/Agent machine where Control-M for AFT is installed
    2. Open a Command prompt and run a ftp command as below (any ftp client can be used for the test).
        Type ftp <ftpswerver name or ip>
    3. At user request, type any valid user for that Windows FTP server or the AFT user set in the Control-M for AFT account
    4. Type the password for the above user when prompted
    5. Enter this command at the ftp prompt to show the current directory: pwd
    6. Verify if the Windows FTP Server is configured correctly:
        - UNIX-like FTP Server: The directory starts with "/"
        - Windows-like FTP Server: The directory path start with "\"

    If the Windows FTP Server is configured as UNIX-like, do the following:

    1. Define the Control-M for AFT Account using the Connection Profile Management as the user is a UNIX User:
         -  Define the Home directory using the Unix path syntax.
         -  For example,
             If the actual Home directory in the Account is: \temp\bmc, change it to /temp/bmc

    2. Do not include the "Home Directory" in the destination path of the Control-M for AFT job definition.
        - For example, 
          If the destination path is "
    /temp/bmc/outputfile", it will be updated to "/temp/bmc/outputfile/temp/bmc"
          Simply define "/outputfile" in the Control-M for AFT job definition

    3. Ensure that all directory related parameters of the Control-M for AFT job us defined using the UNIX path syntax:
         - For example,
            If the Control-M for AFT job definition destination path contains "\temp\bmc", change it to "/temp/bmc"

      

     

      


     

      

     

      
      

     


    Article Number:

    000088945


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles