How do I recover or reset a lost admin password?

Bug #505824 reported by Justas Sadzevičius
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
High
Gediminas Paulauskas
2.1
Triaged
High
Gediminas Paulauskas

Bug Description

The functionality exists in standalone server, options passed to src/schooltool/app/main.py, but nobody uses it directly anymore. We've been using paste script to run a server for a while now and propagation of command line options is not implemented.

This should be solved in two steps:

1) Fixing bzr checkouts. Make src/schooltool/paste/run.py propagate options described in src/schooltool/app/main.py.

As long as they come last in the command line, they should get passed as global_conf, see .../PasteScript-1.7.3-py2.5.egg/paste/script/serve.py, line 139 and below (schooltool.ini is passed as local_conf in both bzr checkouts and installed ST-2009; I don't know which takes precedence by the way).

Note that we might want to omit options like "--stop-daemon" or "--user" from propagation.

2) Fixing ST-2009 install. Update the /usr/share/schooltool-common/init.d-script to pass extra arguments when using start command. That should be sufficient, users could use:
$ sudo /etc/init.d/schooltool-2009 stop
$ sudo /etc/init.d/schooltool-2009 start --restore-manager my_password

Tags: deployment
Changed in schooltool:
importance: Undecided → Medium
assignee: nobody → Justas Sadzevičius (justas-pov)
status: New → Confirmed
Revision history for this message
Justas Sadzevičius (justas.sadzevicius) wrote :

Gediminas, I recall you doing something about this? Or is may memory glitching again?

tags: added: deployment
Changed in schooltool:
assignee: Justas Sadzevičius (justas-pov) → Gediminas Paulauskas (menesis)
Changed in schooltool:
milestone: none → next
status: Confirmed → Triaged
Changed in schooltool:
milestone: next → 2.1
Changed in schooltool:
milestone: 2.1.0 → 2.1.1
importance: Medium → High
Changed in schooltool:
milestone: 2.1.1 → 2.1.3
Changed in schooltool:
milestone: 2.1.3 → 2.2.4
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

In Ubuntu:

  $ schooltool-server -c /etc/schooltool/standard/schooltool.conf --reset-manager -

From source:

  $ bin/schooltool-server -c instance/schooltool.conf --reset-manager -

In earlier versions that don't have the schooltool-server script, the same can be done as

  $ python -m schooltool.app.main -- -c /etc/schooltool/standard/schooltool.conf --restore-manager -

or

  $ bin/python -m schooltool.app.main -- -c instance/schooltool.conf --restore-manager -

Changed in schooltool:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.