How do I recover or reset a lost admin password?

Bug #505824 reported by Justas Sadzevičius on 2010-01-11
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gediminas Paulauskas
Gediminas Paulauskas

Bug Description

The functionality exists in standalone server, options passed to src/schooltool/app/, 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/ propagate options described in src/schooltool/app/

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/, 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

Changed in schooltool:
importance: Undecided → Medium
assignee: nobody → Justas Sadzevičius (justas-pov)
status: New → Confirmed

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
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 -- -c /etc/schooltool/standard/schooltool.conf --restore-manager -


  $ bin/python -m -- -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  Edit
Everyone can see this information.

Other bug subscribers

Related questions