Troubleshooting
Problem
The z/OS FTP server has been configured to allow ANONYMOUS logons. However, any attempt to use this feature is rejected.
Symptom
The client will receive the following response after entering the userid and password:
550-anonymous login rejected by FTP server
550 closing control connection
Cause
If ANONYMOUSLEVEL 2 or 3 is specified in the server's FTP.DATA, a shadow copy of the /usr/sbin/ftpdns path and file must be created under the anonymous user's directory.
Diagnosing The Problem
Enable server tracing with the INT option. Messages similar to the following will be generated:
RXnnnn copyCntlBlks: cbSaveArea at 7F536818
RXnnnn copyCntlBlks: ... for 42984 bytes
RXnnnn main: newuserid => execv main
RXnnnn main: execv() failed on /usr/sbin/ftpdns - EDC5130I Exec format error. (errno2=0B1B0C28)
SRnnnn reply: --> 550-anonymous login rejected by FTP server
SRnnnn reply: --> 550 closing control connection
RXnnnn main: server thread terminates
Resolving The Problem
Ensure that the steps documented in Configuring the FTP Server for ANONYMOUS Logons in the z/OS Communications Server: IP Configuration Guide have been performed. Verify that the /usr/sbin/ftpdns file has the sticky bit set, and use one of the following to correct it:
- The chmod command issued from a UNIX shell (such as the TSO OMVS command).
- The I line command in the UNIX Directory List Utility (ISPF option 3.17 in z/OS 1.8 or later)
- The A line command in the TSO ISHELL command.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21396802