DefectDojo / django-DefectDojo

DevSecOps, ASPM, Vulnerability Management. All on one platform.
https://defectdojo.com
BSD 3-Clause "New" or "Revised" License
3.52k stars 1.48k forks source link

password administrator user can review with usually command #10392

Open johnfelipe opened 1 month ago

johnfelipe commented 1 month ago

WhatsApp Image 2024-06-12 at 1 00 37 PM

i do this

docker compose logs initializer | grep "Admin password:"

pls share right command, im use latest version

mtesauro commented 1 month ago

The password is only displayed the first time DefectDojo is started. After it is set, it will no longer be shown.

If you've lost track of / don't know the default admin password, you can always reset it by running the following command in the context of the DefectDojo/uwsgi container: python manage.py changepassword admin

Likely it's something like this unless your containers are named differently:

docker exec -it uwsgi ./manage.py changepassword admin

or maybe

docker exec -it uwsgi python ./manage.py changepassword admin

I'm doing this from memory so those should be close if not correct.

Follow the prompts to reset the admin password.