Connection terminated by the server after user enters user ID

The system console might display one of the following nonzero exit codes from the FTP server address space:
0012
This exit code indicates a socket error. See the syslogd messages for the specific error.
0024
This exit code indicates that the system was unable to load the server load module /usr/sbin/ftpdns. Ensure that the symbolic link or links for ftpdns are correct, that ftpdns exists in the z/OS® UNIX file system and that the sticky bit is on, and that FTPDNS exists in the search order.

If your system is not configured to display exit codes, check the syslogd output for an FTP error message.