System Administration Guide: Resource Management and Network Services

How to Control the Number of Invalid Login Attempts

If a login to the FTP server fails because of a problem such as misspelling required information, login is usually repeated. The user is allowed a specific number of consecutive login attempts before a message is logged to the syslog file. At that point, the user is disconnected. You can set a failure limit on the number of login attempts by following steps in the next procedure.

  1. Become superuser.

  2. Add the following entries to the ftpaccess file.


    loginfails n
    

    loginfails 

    Keyword that is used to assign the number of login failures that are permitted before the FTP connection is terminated 

    n

    Number of times a login can fail 

Example—Controlling the Number of Invalid Login Attempts


loginfails 10

The preceding example states that the user is disconnected from the FTP server after 10 failed login attempts.