FTP

FTP 212 Directory Status vs 332 Need Account

FTP 212 (Directory Status) is a 2xx Positive Completion response, while 332 (Need Account) is a 3xx Positive Intermediate response. 212 indicates that directory status reply. The server provides information about the current directory or a specified directory. In contrast, 332 means that need account for login. The server requires an additional ACCT command to complete the login process, typically for account-based access control.

Mô tả

Directory status reply. The server provides information about the current directory or a specified directory.

Khi bạn thấy mã này

After issuing the STAT command on a directory, the server returns the directory listing or status information.

Cách khắc phục

No fix needed — this is an informational response showing directory contents or status.

Mô tả

Need account for login. The server requires an additional ACCT command to complete the login process, typically for account-based access control.

Khi bạn thấy mã này

After sending USER and PASS when the server requires an additional account identifier before granting access.

Cách khắc phục

Send the ACCT command with the appropriate account name. If you do not have an account identifier, contact the server administrator.

Sự khác biệt chính

1.

212 is a 2xx Positive Completion response, while 332 is a 3xx Positive Intermediate response.

2.

FTP 212: Directory status reply. The server provides information about the current directory or a specified directory.

3.

FTP 332: Need account for login. The server requires an additional ACCT command to complete the login process, typically for account-based access control.

4.

You encounter 212 when after issuing the STAT command on a directory, the server returns the directory listing or status information.

5.

You encounter 332 when after sending USER and PASS when the server requires an additional account identifier before granting access.

Khi nào dùng cái nào

For 212 (Directory Status): No fix needed — this is an informational response showing directory contents or status. For 332 (Need Account): Send the ACCT command with the appropriate account name. If you do not have an account identifier, contact the server administrator.

Tìm hiểu thêm