Reset admin password of OpenVAS

When I installed OpenVAS, I was prompted for a password, however the prompt errored out. I have installed OpenVAS and it is working properly, however I cant get in as admin (I created a new user and that works fine).

I've tried googling how to reset admin password, recover admin password, change the access of a user to admin, but to no avail.

Greenbone Security Assistant is version 4.0. OpenVAS is version 6 I believe (I just installed it today)

Host OS is Kali Linux.


Solution 1:

NOTE: This was the solution several years ago and this answer, although accepted, is now outdated. Please look at other answers to find an up to date solution

You can create a new administrative account with :

openvasad -c add_user -u your_new_login_here -r Admin

Then use this account to change the default admin's password.

Solution 2:

Try this:

openvasmd --user=admin --new-password=new_password

Solution 3:

To change the web login :

openvasmd --create-user NEWUSER

It will automatically generate a password for the new user.

Use this new account to modify the admin password.

To remove the 'junk / false' account just enter

 openvasmd --delete-user=NEWUSER

or do so in the WebUI.