Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17061

Create an admin recovery script rather like what Gallery does

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Inactive
    • 1.9.3
    • None
    • Administration
    • None
    • MOODLE_19_STABLE

    Description

      This came out of a conversation over lots of pasta with Skodak.....

      In order to recover lost administration rights, implement something similar to Gallery. The outline is as follows...

      • Create a "hidden" (but documented) script in the admin folder..... recoveradmin.php or somesuch
      • It invites you to create a file in the moodle root with a given name and a randomly generated key therein and then refresh the page
      • The rest of the process is locked out until this file is found to be correct - obviously, this needs to be locked down properly (I'll look/steal what Gallery does)
      • Once you're in there it will do this...
          • Allow a new manual user to be created and assigned to the administrator role
          • Reset the administrator role (and assignment rights) to default
          • Reset the User Policy settings to default (a source of locked out admins)
      • The above should be options probably
      • The Moodle site will NOT run with the key file in place as an additional security feature.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              howardsmiller Howard Miller
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: