How to reset password for Web UI?

The Web UI uses SQLite database in /opt/websafety/var/db/config.sqlite to store user names and passwords. By default there is only one user root with password Passw0rd. This user is marked as superuser, i.e. it can logon and change any settings in the Web UI.

In Web Safety 7.0 and later versions password for the root user can be reset by logging into console and running the following command. Replace MyNewPassw0rd with your desired password of course.

python3 /opt/websafety/var/console/reset_password.py --password=MyNewPassw0rd

In older versions of Web Safety it is possible to reset the password of root user by logging to the console using ssh, downloading the /opt/websafety/var/db/config.sqlite, opening it in any SQLite database management program (like for example SQLite Expert) and replacing the salted password in the auth_user table to the following:

pbkdf2_sha256$12000$j2rtYY1S1III$XqtCVaft/qdQTIwTp8ifRDvJG42XEdFja5jV86U8RkM=

Please ensure all other fields look like indicated on the following screenshot. Upload modified database back into /opt/websafety/var/ and restart Apache. The try logging it again.

../../_images/root_user.png