Lost admin password

Hi,

I have just installed GVM in my kali linux laptop. But I have lost my admin password. I have tried to reset password by using following command.

gvmd --user=admin --new-password=new_password

But it is not taken. Showing “Failed to login” message. Please advice me.

Regards,

Saurabh Pal

Hi,

could you try the following

sudo -u _gvm gvmd --user=admin --new-password='new_password'

?

If your password contains special characters like $ it must be marked as a literal string for the shell via putting it within single quotes '.

3 Likes

Yes. It was. I have used special characters.

1 Like

JFYI: I’ve updated our docs for this possible mistake just this week with Change: Quote passwords when creating an admin user by bjoernricks · Pull Request #436 · greenbone/docs · GitHub

3 Likes