The FTCHKCMD user exit (for the FTP server)
The FTCHKCMD user exit is called whenever the server receives an FTP command. The following information is passed to the user exit:
- The user ID
- The FTP command to be processed
- The command's arguments
- The directory type (MVS™ or HFS)
- The FILETYPE (SEQ, JES, or SQL)
- The current working directory
- A buffer to hold a modified argument string
- A buffer to hold a 500 reply extension to explain why the exit denied the request
- The socket address structure of the client's control connection
- The socket address structure of the server's control connection
- Session instance identifier
- A 256-byte scratchpad buffer
The user exit enables an installation to modify the arguments of an FTP command or to deny a user from issuing the command. For example, if the server receives a LIST * command, the exit can either deny the command or modify it to LIST 'USER1.*'. If the user exit denies the request by this user to issue this command, one or both of the following replies will be sent to the user. The first reply is optional and is sent only if the user exit returns a string in the 500 reply extension buffer.
500-UX-buffercontents
500 User Exit denies Userid userid from using Command command