Resetting password not working

Good day,

I have installed the latest gvm on kali 2021.1
I have changed the config so that I can access GUI from a different computer.
(/lib/systemd/system/greenbone-security-assistant.service)

I did not see the default username and password when the setup began so I tried making my own
(SS attached)

sudo runuser -u _gvm – gvmd --create-user=Test --new-password=12345

However, when I go to the browser it says invalid username and/or password.

I tried removing gvm
(sudo apt remove gvm)
(sudo apt autoremove)

Then reboot and re-install
When I re-install the test users I created are still there, so I feel like the remove is not deleting everything it should.

Any suggestions?

This is very likely a specific issue with postges and Kali. Please search in this forum for possible solutions. It has been asked several times already.

1 Like

The issue I am finding when searching for issues with Kali and Postgre is that the wrong version gets installed.

This is not true in my case.

I have Postgre version 13 installed (No sign of 12)
And the port is already set to 5432

Figured it out.

The line I was using was creating the user, but not setting the passwords correctly.
sudo runuser -u _gvm -- gvmd --create-user=admin2 --new-password=12345

Running this command showed the users were there:
sudo runuser -u _gvm -- gvmd --get-users

The logs showed the users were failing:

md    gmp:WARNING:2021-04-01 16h26.04 utc:4343: Authentication failure for 'admin2' from unix_socket
md    gmp:WARNING:2021-04-01 16h26.06 utc:4346: Authentication failure for 'admin2' from unix_socket
md    gmp:WARNING:2021-04-01 16h26.07 utc:4349: Authentication failure for 'admin2' from unix_socket
md    gmp:WARNING:2021-04-01 16h26.09 utc:4352: Authentication failure for 'admin2' from unix_socket

I went back and ran this command, and after the login worked.

sudo runuser -u _gvm -- gvmd --user=admin2 --new-password=123456

Hope this information is useful to someone… spent 5 hours on this.

1 Like