itiligent / Easy-OpenVAS-Installer

GVM (aka OpenVAS) appliance install script, includes https:443 front end (self signed), authenticated SMB scanning , email report features & upgrade script
31 stars 6 forks source link

Please provide How do i change admin password? #4

Closed sergeymeleschenko closed 4 months ago

sergeymeleschenko commented 4 months ago

Please provide How do i change admin password?

itiligent commented 4 months ago

Although this is not a project issue and a GVM support topic, the answer is buried quite deep in GVM forums and hard to find.

Another suggestion to help you help yourself and build familiarity is to search scripts. In this case this approach will likely lead you to lines that realte to users and the gvmd executable, which you can then query for options.. eg: sudo /usr/local/sbin/gvmd --help

And from there, your can deduce changing a password is:
sudo /usr/local/sbin/gvmd --user=adminuser --new-password=newpassword

I've added this above command reminder to the final script on screen output, and good luck with the project .

sergeymeleschenko commented 4 months ago

Thanks for your answer.

Please double-check. I think it's a bug.

Try to enter container docker exec -it greenbone-community-edition-gvmd-1 bash Than udo /usr/local/sbin/gvmd --user=adminuser --new-password=newpassword

Than on login page I got message

The Greenbone Vulnerability Manager service is not responding. This could be due to system maintenance. Please try again later, check the system status, or contact your system administrator.

And can't log in

itiligent commented 4 months ago

Oh I see, I assumed you were installing from the source , not with Docker .

Still not a bug. If you are using Docker you have to execute things differently. Again, if you look at what scripts are doing, you will find this line in the build scipt that is downloaded from GVM....and therein lies your answer. Adapt to suit your path to the compose file path and name:.

docker compose -f $DOWNLOAD_DIR/docker-compose-$RELEASE.yml -p greenbone-community-edition \ exec -u gvmd gvmd gvmd --user=admin --new-password=$password

(As I mention in the readme, the Docker version is not very reliable and I get the feeling not a lot of QA goes into this before each update. Also, I checked in on this today, and a few architectural things have changed with the build dependecy and process since I put this together, so I'll put out an updated source build script soon (The current one works, just cant upgrade past v23 yet. Souce build is a far better and more solid option)

sergeymeleschenko commented 4 months ago

Many thanks. Sorry to bother you. But it doesn't works :(