Admin Password Recovery for WebODM Server Edition



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

I tired ./ 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


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');;print('The following user was changed: {}'.format(u.username));" | python shell

The password will then be: newpass.