Admin Password Recovery for WebODM Server Edition


#1

Hi,

I managed to forget my original admin password is there anyway to recover?

I tired ./webodm.sh resetadminpassword but this seems to only work for instances running in docker. I’m running on ubuntu 16.0.4 using the purchased server installer.

Thanks - Edd


#2

From the /webodm directory, copy/paste or type:

echo "from django.contrib.auth.models import User;from django.contrib.auth.hashers import make_password;u=User.objects.filter(is_superuser=True)[0];u.password=make_password('newpass');u.save();print('The following user was changed: {}'.format(u.username));" | python manage.py shell

The password will then be: newpass.


#3

You may need to invoke the python3 virtual env first. From the /webodm directory:

source python3-venv/bin/activate


#4

Yes, thank you @gjsa!