> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/generic/how-to/ars-login-failed.md).

# ARS Login Failed: pf9 Account or Password is Expired

## Problem

* Unable to get SSH access though ARS is enabled for the hosts.
* SSH access asks for a password for the pf9 user.
* Error shows below messages while trying to access.

{% tabs %}
{% tab title="SSH to Hosts: Error messages" %}

```javascript
Your account has expired; please contact your system administrator

OR

WARNING: Your password has expired.
You must change your password now and login again!
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 - All Managed Offering Products

## Cause

Either password or account is expired for pf9 user, as user account and password expiration limit is set and expired already.

## Resolution

* Check the expiration date set for pf9 user using chage command shown below:

{% tabs %}
{% tab title="Chage to check expiration" %}

```javascript
# chage -l pf9
Last password change : Mar 13, 2022
Password expires : Jun 13, 2022
Password inactive : Jun 13, 2022
Account expires : Jun 13, 2022
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
```

{% endtab %}
{% endtabs %}

* Change password using chage

{% tabs %}
{% tab title="Chage command" %}

```javascript
# chage -m 0 -M 99999 -E -1 pf9    //for account to never expire

OR
# chage --help    //explore chage flags
```

{% endtab %}
{% endtabs %}

* Verify the change

{% tabs %}
{% tab title="After limit updation" %}

```javascript
# chage -l pf9
Last password change : Mar 13, 2022
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/generic/how-to/ars-login-failed.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
