Previous Topic: Suspend Unused Accounts

Next Topic: Set the Time after Which Users Can Attempt to Log In Again

Suspend Accounts After Failed Login Attempts

To set accounts to be suspended after a certain number of attempts to log in, use the following command:

set password-retries = number-retries;

If you do not set this command, the default value of three retries is used.

Example: Allow Users Two Login Attempts

In this example, you want to allow users only two unsuccessful login attempts before suspending their account.

To set this up, use these commands:

set password-policy = true;
set password-retries = 2;

The following happens when a user tries to log in with an incorrect password:

  1. Craig Link tries to log in using the wrong password.
  2. He tries again with another incorrect password.

    His login is unsuccessful, and his account is suspended.

More information:

set password-retries Command