---
title: Password is not recognized by Kron PAM
slug: kronpam-support-and-maintenance-guides/password-is-not-recognized-by-kron-pam
docTags: 
createdAt: 2024-07-24T12:27:33.027Z
---

When you run a command that requires typing the password as “sudo su” or “mysqlrouter --bootstrap”, Kron PAM expects a predefined password prompt. The expected password prompt should match with the defined regex in the Element Type Properties.

**Steps to Fix:**

Take the following steps to troubleshoot:

1. Navigate to **Device Management > Element Type.**
2. On the related element type, click the **Options menu > Show Properties.**
3. Add th&#x65;**&#x20;enforcer.terminal.behaviour.exc\_last\_line\_patterns** element type property with a proper regex with the password prompt.

:::hint{type="info"}
**.\*password.\*:.\*&#x20;**&#x72;egex should match the password prompt of commands. You can check whether it matches on a 3rd party website.
:::



