Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

656 lines
17 KiB

  1. These are the replys that may be sent from the FTP Server to an FTP Client.
  2. Text enclosed in square brackets (such as [(guest access)]) may optionally
  3. appear in the output stream.
  4. Text enclosed within percent signs (such as %user_name%) are placeholders for
  5. run-time dependent values (such as keithmo). These values are:
  6. %anonymous_id%
  7. This is the identification sent as a "password"
  8. when an anonymous user logs in.
  9. %b1,b2,b3,b4,p1,p2%
  10. This is part of the response from a request to
  11. enter passive mode. b1-b4 specify the local IP
  12. address for the passive data socket. p1-p2
  13. specify the local port for the passive data
  14. socket. All values are in network byte order.
  15. %command_name%
  16. The name of a command sent by the FTP client.
  17. %command_text%
  18. The entire text of a command sent by the FTP
  19. client.
  20. %connection_timeout%
  21. The idle-user timeout value (in seconds).
  22. %current_directory_name%
  23. A user's current directory.
  24. %custom_exit_message%
  25. The custom single-line exit message to send
  26. when a client QUITs.
  27. %custom_greeting_line_x%
  28. The custom multi-line greeting message to send
  29. when a new client connects.
  30. %directory_name%
  31. A directory name.
  32. %file_name%
  33. A file name.
  34. %form%
  35. A transfer form type. This will always be
  36. "Nonprint".
  37. %host_name%
  38. The name of the local FTP Server host.
  39. %long_directory_listing%
  40. A long format directory listing.
  41. %major_ftp_server_version%
  42. The major FTP Server version number.
  43. %minor_ftp_server_version%
  44. The minor FTP Server version number.
  45. %ftp_server_version%
  46. %major_ftp_server_version%.%minor_ftp_server_version%
  47. %major_windows_version%
  48. The major Windows NT version number.
  49. %minor_windows_version%
  50. The minor Windows NT version number.
  51. %mode_type%
  52. A transfer mode type. This will always be
  53. "STREAM".
  54. %struct%
  55. A transfer structure type. This will always be
  56. "File".
  57. %type%
  58. A transfer type. This will be either "ASCII" or
  59. "BINARY".
  60. %users_host_name%
  61. The connected FTP client's host name.
  62. %users_ip_address%
  63. The connected FTP client's IP address (in dot
  64. notation).
  65. %user_name%
  66. The connected users's name.
  67. %win32_error_text%
  68. A string of text from WINERROR.MC that describes
  69. a specific Win32 error condition (such as "Access
  70. is denied.").
  71. *************************************
  72. *** ***
  73. *** POSITIVE PRELIMINARY REPLIES ***
  74. *** ***
  75. *************************************
  76. 125 Data connection already open; transfer starting.
  77. Indicates that a passive mode transfer has been initiated.
  78. 150 Opening %mode_type% mode data connection for %file_name%.
  79. Indicates that the server is opening a new data
  80. connection for the transfer of %file_name%. Whenever a
  81. directory listing is requested, this message is sent with
  82. %file_name% set to "file list".
  83. ************************************
  84. *** ***
  85. *** POSITIVE COMPLETION REPLIES ***
  86. *** ***
  87. ************************************
  88. 200 NOOP command successful.
  89. The NOOP command completed.
  90. 200 PORT command successful.
  91. The NOOP command completed.
  92. 200 Type set to %type%.
  93. The transfer type was set.
  94. 200 STRU %struct% ok.
  95. The transfer structure type was set.
  96. 200 MODE %mode_type% ok.
  97. The transfer mode was set.
  98. 200 ALLO command successful.
  99. The ALLO command completed.
  100. 202 ACCT command not implemented.
  101. The ACCT command is superfluous at this site.
  102. 202 SMNT command not implemented.
  103. The SMNT command is superfluous at this site.
  104. 202 SITE command not implemented.
  105. The SITE command is superfluous at this site.
  106. 211-%host_name% Windows NT FTP Server status:
  107. Version %major_ftp_server_version%.%minor_ftp_server_version%
  108. Connected to %users_host_name or %users_ip_address%
  109. Logged in as %user_name%
  110. TYPE: %type%, FORM: %form%, STRUcture: %struct%, transfer MODE: %mode_type%
  111. {No data connection or Data connection established}
  112. 211 End of status.
  113. This multi-line reply is sent whenever a STAT command is
  114. received with no arguments. It indicates the general
  115. status of the FTP server and the current connection.
  116. 213-status of %file_or_directory_name%
  117. %long_directory_listing%
  118. 213 End of Status.
  119. This multi-line reply is sent whenever a STAT command is
  120. received with an argument. This functions similarly to
  121. DIR {arg}, except that the directory listing is sent over
  122. the command socket; a new data transfer socket is not
  123. created for the listing.
  124. 214-The following commands are recognized (* =>'s unimplemented).
  125. USER PASS ACCT CWD XCWD CDUP XCUP SMNT
  126. QUIT REIN PORT PASV TYPE STRU MODE RETR
  127. STOR STOU APPE ALLO REST* RNFR RNTO ABOR*
  128. DELE RMD XRMD MKD XMKD PWD XPWD LIST
  129. NLST SITE SYST STAT HELP NOOP
  130. 214 HELP command successful.
  131. This multi-line reply is sent whenever a HELP command is
  132. received with no arguments. It lists all available
  133. FTP Server commands.
  134. 214 Syntax: USER <sp> username
  135. This reply is sent whenever a HELP USER command is
  136. received.
  137. 214 Syntax: PASS <sp> password
  138. This reply is sent whenever a HELP PASS command is
  139. received.
  140. 214 Syntax: ACCT (specify account)
  141. This reply is sent whenever a HELP ACCT command is
  142. received.
  143. 214 Syntax: CWD [ <sp> directory-name ]
  144. This reply is sent whenever a HELP CWD command is
  145. received.
  146. 214 Syntax: XCWD [ <sp> directory-name ]
  147. This reply is sent whenever a HELP XCWD command is
  148. received.
  149. 214 Syntax: CDUP change to parent directory
  150. This reply is sent whenever a HELP CDUP command is
  151. received.
  152. 214 Syntax: XCUP change to parent directory
  153. This reply is sent whenever a HELP XCUP command is
  154. received.
  155. 214 Syntax: SMNT <sp> pathname
  156. This reply is sent whenever a HELP SMNT command is
  157. received.
  158. 214 Syntax: QUIT (terminate service)
  159. This reply is sent whenever a HELP QUIT command is
  160. received.
  161. 214 Syntax: REIN (reinitialize server state)
  162. This reply is sent whenever a HELP REIN command is
  163. received.
  164. 214 Syntax: PORT <sp> b0,b1,b2,b3,b4,b5
  165. This reply is sent whenever a HELP PORT command is
  166. received.
  167. 214 Syntax: PASV (set server in passive mode)
  168. This reply is sent whenever a HELP PASV command is
  169. received.
  170. 214 Syntax: TYPE <sp> [ A | E | I | L ]
  171. This reply is sent whenever a HELP TYPE command is
  172. received.
  173. 214 Syntax: STRU (specify file structure)
  174. This reply is sent whenever a HELP STRU command is
  175. received.
  176. 214 Syntax: MODE (specify transfer mode)
  177. This reply is sent whenever a HELP MODE command is
  178. received.
  179. 214 Syntax: RETR <sp> file-name
  180. This reply is sent whenever a HELP RETR command is
  181. received.
  182. 214 Syntax: STOR <sp> file-name
  183. This reply is sent whenever a HELP STOR command is received.
  184. 214 Syntax: STOU (store unique file)
  185. This reply is sent whenever a HELP STOU command is
  186. received.
  187. 214 Syntax: APPE <sp> file-name
  188. This reply is sent whenever a HELP APPE command is
  189. received.
  190. 214 Syntax: ALLO (allocate storage vacuously)
  191. This reply is sent whenever a HELP ALLO command is
  192. received.
  193. 214 Syntax: REST <sp> marker
  194. This reply is sent whenever a HELP REST command is
  195. received.
  196. 214 Syntax: RNFR <sp> file-name
  197. This reply is sent whenever a HELP RNFR command is
  198. received.
  199. 214 Syntax: RNTO <sp> file-name
  200. This reply is sent whenever a HELP RNTO command is
  201. received.
  202. 214 Syntax: ABOR (abort operation)
  203. This reply is sent whenever a HELP ABOR command is
  204. received.
  205. 214 Syntax: DELE <sp> file-name
  206. This reply is sent whenever a HELP DELE command is
  207. received.
  208. 214 Syntax: RMD <sp> path-name
  209. This reply is sent whenever a HELP RMD command is
  210. received.
  211. 214 Syntax: XRMD <sp> path-name
  212. This reply is sent whenever a HELP XRMD command is
  213. received.
  214. 214 Syntax: MKD <sp> path-name
  215. This reply is sent whenever a HELP MKD command is
  216. received.
  217. 214 Syntax: XMKD <sp> path-name
  218. This reply is sent whenever a HELP XMKD command is
  219. received.
  220. 214 Syntax: PWD (return current directory)
  221. This reply is sent whenever a HELP PWD command is
  222. received.
  223. 214 Syntax: XPWD (return current directory)
  224. This reply is sent whenever a HELP XPWD command is
  225. received.
  226. 214 Syntax: LIST [ <sp> path-name ]
  227. This reply is sent whenever a HELP LIST command is
  228. received.
  229. 214 Syntax: NLST [ <sp> path-name ]
  230. This reply is sent whenever a HELP NLST command is
  231. received.
  232. 214 Syntax: SITE (site-specific commands)
  233. This reply is sent whenever a HELP SITE command is
  234. received.
  235. 214 Syntax: SYST (get operating system type)
  236. This reply is sent whenever a HELP SYST command is
  237. received.
  238. 214 Syntax: STAT (get server status)
  239. This reply is sent whenever a HELP STAT command is
  240. received.
  241. 214 Syntax: HELP [ <sp> <string> ]
  242. This reply is sent whenever a HELP HELP command is
  243. received.
  244. 214 Syntax: NOOP
  245. This reply is sent whenever a HELP NOOP command is
  246. received.
  247. 214-The following SITE commands are recognized (* =>'s unimplemented).
  248. DIRSTYLE CKM HELP
  249. 214 HELP command successful.
  250. This multi-line reply is sent whenever a SITE HELP command is
  251. received with no arguments. It lists all available
  252. site-specific FTP Server commands.
  253. 214 Syntax: SITE DIRSTYLE (toggle directory format)
  254. This reply is sent whenever a SITE HELP DIRSTYLE command
  255. is received.
  256. 214 Syntax: SITE CKM (toggle directory comments)
  257. This reply is sent whenever a SITE HELP CKM command
  258. is received.
  259. 214 Syntax: SITE HELP [ <sp> <string>]
  260. This reply is sent whenever a SITE HELP HELP command
  261. is received.
  262. 215 Windows_NT version %major_windows_version%.%minor_windows_version%
  263. This is sent as a response to the SYST command.
  264. 220-%host_name% Windows NT FTP Server (%ftp_server_version%)
  265. %custom_greeting_line_1%
  266. %custom_greeting_line_2%
  267. .
  268. .
  269. .
  270. %custom_greeting_line_N%
  271. 220 Service ready for new user.
  272. This multi-line reply is sent whenever a new FTP client
  273. connects to the server. The custom greeting, if any,
  274. comes from the registry.
  275. 220 Service ready for new user.
  276. This single-line reply is sent after a connection has
  277. been reinitialized via the REIN command.
  278. 221 Goodbye.
  279. This is the default exit message sent in response to a
  280. QUIT command.
  281. 221 %custom_exit_message%
  282. This is the custom exit message sent in response to a
  283. QUIT command.
  284. 226 Transfer complete.
  285. This is sent after a successful data transfer.
  286. 227 Entering passive mode %b1,b2,b3,b4,p1,p2%
  287. This is sent after a PASV command has successfully
  288. created a new data socket.
  289. 230 Anonymous user logged in as %anonymous_id% [(guest access)].
  290. This indicates that an anonymous logon has succeeded.
  291. (guest access) will be displayed if the user has guest
  292. access.
  293. 230 User %user_name% logged in [(guest access)].
  294. This indicates that a non-anonymous logon has succeeded.
  295. (guest access) will be displayed if the user has guest
  296. access.
  297. 250 CWD command successful.
  298. Indicates the CWD command has completed.
  299. 250 RNTO command successful.
  300. Indicates the RNTO command has completed.
  301. 250 DELE command successful.
  302. Indicates the DELE command has completed.
  303. 250 RMD command successful.
  304. Indicates the RMD command has completed.
  305. 250 MKD command successful.
  306. Indicates the MKD command has completed.
  307. 257 "%current_directory_name%" is current directory.
  308. This is sent in response to a PWD command.
  309. **************************************
  310. *** ***
  311. *** POSITIVE INTERMEDIATE REPLIES ***
  312. *** ***
  313. **************************************
  314. 331 Anonymous access allowed, send identity (e-mail name) as password.
  315. This indicates that a USER command with a user-name of
  316. "Anonymous" has been received and accepted. This prompts
  317. the user to enter an identity (e-mail name) instead of
  318. a password.
  319. 331 Password required for %user_name%.
  320. This indicates that a USER command with a user-name other
  321. than "Anonymous" has been received and accepted. This
  322. prompts the user to enter a password.
  323. 350 File exists, ready for destination name.
  324. Indicates that a RNFR command has completed.
  325. **********************************************
  326. *** ***
  327. *** TRANSIENT NEGATIVE COMPLETION REPLIES ***
  328. *** ***
  329. **********************************************
  330. 421 Service not available, closing control connection.
  331. Indicates that the FTP Server is unable to accept new
  332. connections at this time.
  333. 421 Terminating connection.
  334. This is sent after a user has been forcibly disconnected.
  335. 421 Timeout (%connection_timeout% seconds): closing control connection.
  336. Indicates that the idle-user timeout period has expired
  337. for this connection.
  338. 425 Can't open data connection.
  339. Indicates that a new data connection could not be
  340. established to the FTP client.
  341. 426 Connection closed; transfer aborted.
  342. Indicates that an error occurred during a data transfer
  343. and the transfer was aborted.
  344. **********************************************
  345. *** ***
  346. *** PERMANENT NEGATIVE COMPLETION REPLIES ***
  347. *** ***
  348. **********************************************
  349. 500 %command_text%: comamnd not understood.
  350. Either an unknown command was received by the FTP Server
  351. or the command had invalid parameters.
  352. 501 Unknown command %command_name%.
  353. A HELP command was received with a parameter specifying
  354. an unknown command.
  355. 502 %command_text% command not implemented.
  356. The specified command is not implemented by this
  357. FTP Server.
  358. 503 Bad sequence of commands.
  359. A RNTO command was received before a RNFR command. A
  360. RNFR command must always preceed a RNTO command.
  361. 503 Login with USER first.
  362. A PASS command was received before a corresponding USER
  363. command.
  364. 504 Form must be N or T.
  365. An invalid form type was received in the TYPE command.
  366. 504 Type E not implemented.
  367. The E type was specified in a TYPE command.
  368. 504 Byte size must be 8.
  369. A byte size other than 8 was specified in a TYPE command.
  370. 504 Unimplemented STRU type.
  371. A structure type other than File was received in a STRU
  372. command.
  373. 504 Unimplemented MODE type.
  374. A mode type other than Stream was received in a MODE
  375. command.
  376. 530 Please login with USER and PASS.
  377. An unacceptable command was received before the user
  378. logged in.
  379. 530 User %user_name% cannot log in.
  380. The specified user cannot log in at this time.
  381. 530 User %user_name% cannot log in, home directory inaccessible.
  382. The specified user cannot log in because their home
  383. directory is inaccessible.
  384. 530 User %user_name% cannot log in, license quota exceeded.
  385. The specified user cannot log in due to license quota
  386. restrictions.
  387. 530 User %user_name% cannot log in, guest access not allowed.
  388. The specified user cannot log in because they provided a
  389. "guest" account, and guest access has been disabled.
  390. 550 %directory_name%: No such file or directory.
  391. The specified directory cannot be found.
  392. 550 %directory_name%: %win32_error_text%
  393. The specified directory cannot be accessed.
  394. 550 %file_name%: No such file or directory.
  395. The specified file cannot be found.
  396. 550 %file_name%: %win32_error_text%
  397. The specified file cannot be accessed.