# Reset Nessus Username & Password via CLI

Locked out of Nessus? Forget clicking around in the Web UI just drop to the CLI and you can reset, recover, or create accounts in seconds. Fast, scriptable, and way cleaner.

***

### 1. List All Nessus Users

Want to see who exists on your Nessus box? Run:

```bash
sudo /opt/nessus/sbin/nessuscli lsuser
```

This will dump all registered usernames to your terminal. No digging through configs, no guesswork.

***

### 2. Reset Any Nessus User’s Password

Got the username? Reset it like this:

```bash
sudo /opt/nessus/sbin/nessuscli chpasswd <username>
```

You’ll be prompted to enter the new password twice. That’s it—the account is back in action, no GUI involved.

***

### 3. Forgot the Username? Create a New User

If `lsuser` gives you nothing or you’d rather spin up a new account:

```bash
sudo /opt/nessus/sbin/nessuscli adduser
```

Step through the prompts, assign admin rights if needed, and you’re instantly back in control.

***

### Finally

* **Shortcut Trick**: Symlink `nessuscli` into `/usr/local/bin` so you don’t have to type the full path every time.

```bash
sudo ln -s /opt/nessus/sbin/nessuscli /usr/local/bin/nessuscli
```


---

# Agent Instructions: 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 current page URL with the `ask` query parameter:

```
GET https://docs.wehost.co.in/blog/reset-nessus-username-and-password-via-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
