How do i reset the admin password for the web interface?
I googled how to reset the admin password and the results showed using this:
openvasmd --user= admin --new- password =new_password.
but the opemvasmd is not found.
this is the gsad version: Greenbone Security Assistant 8.0.0
I think I am using OpenVAS 9
Can you access the GOS Admin Menu via ssh?
You can change the web user passwords via
GOS Admin Menu > Setup > User > Users > Change Password
Nope. This is GVM-10 (old stable, initial release 2019-04-05)
And because you are using GSA 8.0.0 you can’t be on a Greenbone OS based system. Therefore moving to the GSE category. Your packages are outdated.
For GVM 10 and newer the command is
gvmd --user=admin --new-password=new_password
I finally figured it out. I had to run it the following way:
export $(sudo cat /etc/default/gvmd-pg)
sudo -E -u gvm -g gvm gvmd --user=admin --new-password=‘your new password here’
Hi mstjohn, i tried the command but i am getting below error message, any idea?
sudo: unknown group: gvm
sudo: error initializing audit plugin sudoers_audit
You need to check gvm group and user
User and group must match with the command above
Following worked for me.
Check if user gvm or _gvm exists and what is the group
uid=135(_gvm) gid=144(_gvm) groups=144(_gvm),143(redis)
sudo -E -u _gvm -g _gvm gvmd --user=admin --new-password=NEW_PASSWD
ah thank you sooo much!!!