FTP 서버에서 사용되는 계정 필드와 사용자 이름은 무엇입니까

FTP 서버에서 사용되는 계정 필드와 사용자 이름은 무엇입니까

어리석은 질문이겠지만, FTP 서버에 접속할 때 가끔 계정에 대한 옵션이 나오는 경우가 있습니다. 이것과 사용자 이름의 중요성은 무엇입니까?

예를 들어 Apache FTP 클라이언트에서 이 방법을 참조하세요.

/**
 * Login to the FTP server using the provided username, password,
 * and account.  If no account is required by the server, only
 * the username and password, the account information is not used.
 *
 * @param username The username to login under.
 * @param password The password to use.
 * @param account  The account to use.
 * @return True if successfully completed, false if not.
 * @throws FTPConnectionClosedException
 *      If the FTP server prematurely closes the connection as a result
 *      of the client being idle or some other reason causing the server
 *      to send FTP reply code 421.  This exception may be caught either
 *      as an IOException or independently as itself.
 * @throws IOException  If an I/O error occurs while either sending a
 *      command to the server or receiving a reply from the server.
 */
public boolean login(final String username, final String password, final String account)
throws IOException
{
    ....
}

답변1

"계정"은 일부 특정 시스템에서는 거의 사용되지 않습니다. 언제 사용해야 하는지 알게 될 것입니다. 대부분 그렇지 않습니다. 아마도 레거시 물건 일 것입니다. FTP를 모두 마친 후RFC 959"계정" 기능을 정의하는 것은 1985년부터입니다!

이것은 FTP RFC 959가 ACCT(계정) 명령에 대해 모호하게 말하는 내용입니다.

인수 필드는 사용자 계정을 식별하는 Telnet 문자열입니다. 이 명령은 반드시 USER 명령과 관련이 있는 것은 아닙니다. 일부 사이트에서는 로그인을 위한 계정이 필요할 수 있고 다른 사이트에서는 파일 저장과 같은 특정 액세스에만 계정이 필요할 수 있기 때문입니다. 후자의 경우 명령은 언제든지 도착할 수 있습니다.

관련 정보