---
title: "Change the maximum number of login attempts from an IP before it gets locked out"
description: "Opsview limits login attempts from an IP address before locking it out to prevent unauthorized access. You can change this maximum number by editing the uservars.yml file and applying the configuration with the orchestrator-install.yml playbook."
url: "https://docs.itrsgroup.com/docs/faq/opsview/4921180136989-opsview-change-the-maximum-number-of-login-attempts-from-an-ip-before-it-gets-locked-out/index.html"
---
Opsview temporarily prevents logins from IP addresses that repeatedly fail to log in. You can change the threshold at which this happens. Follow these steps to adjust the number of maximum login attempts before an IP address is blocked.

## Prerequisites

- None

### Process

1. Log in to the [orchestrator](https://docs.itrsgroup.com/docs/faq/opsview/4920429084957-opsview-orchestrator/index.html) as `root`.
2. Open your [user_vars.yml](https://docs.itrsgroup.com/docs/faq/opsview/4997107149853-opsview-user-vars-yml/index.html) file (`/opt/opsview/deploy/etc/user_vars.yml`) in your preferred text editor.

**YML editing**

Take care to ensure proper formatting when editing YML files, including using only two spaces per level of indentation.

3. Add or update the below configuration to the `opsview_core_web_local_overrides` section of your `user_vars.yml` file:

```
opsview_core_web_local_overrides:
  Controller::Root:
    login_throttling:
      ip_limit: 5 # replace 5 with your desired number of maximum login attempts
```

#### `opsview_core_web_local_overrides` section does not exist

If the `opsview_core_web_local_overrides` section does not exist, create it by adding the above configuration to the end of your `user_vars.yml` file.

4. Run the `orchestrator-install.yml` playbook using `opsview-deploy` to apply the new login attempts limit:

```
/opt/opsview/deploy/bin/opsview-deploy /opt/opsview/deploy/lib/playbooks/orchestrator-install.yml
```


