Changing password

Hi,

How would I go about changing:

  1. the admin password (created via `tutor local do createuser --staff --superuser admin admin@email --password ` initially)

  2. the `MYSQL_ROOT_PASSWORD` of the database (set via tutor config)

  3. the `SUPERSET_OAUTH2_CLIENT_SECRET` (set via tutor config)

I mean, I know how to change the tutor config setting, but how do I change the “backend” to match ?

You can update them using the following commands:

tutor config save --set MYSQL_ROOT_PASSWORD=<new_password>
tutor config save --set SUPERSET_OAUTH2_CLIENT_SECRET=<new_secret>

Then apply the changes:

tutor local do init
tutor local stop
tutor local start -d

To change the Django admin (or any user) password:

tutor local run lms ./manage.py lms changepassword <username> 

Hope this helps!

Ah, so changing the passwords through the tutor config will update the password in the database without reseting it ?

That did not work. Changing the root MYSQL password yields errors in do init:

mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user ‘root’@‘172.18.0.17’ (using password: YES)
[1/10] Waiting for MySQL service (this may take a while)…
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user ‘root’@‘172.18.0.17’ (using password: YES)
[2/10] Waiting for MySQL service (this may take a while)…
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user ‘root’@‘172.18.0.17’ (using password: YES)
[3/10] Waiting for MySQL service (this may take a while)…

Also, for the `SUPERSET_OAUTH2_CLIENT_SECRET`, it has to be manually updated through

/admin/oauth2_provider/application/

Just changing the config and running init does not work either.

@tutor-maintainers could we get some help here?