Moodle Blog

(Not) Locking yourself out of Moodle 2.0

At least once a week, on the help forums of, someone comes along in a real panic. Almost invariably their woes begin with something like I was just editing some roles and then when I tried to log in again I found I’d lost all my admin rights They usually believe they are the first person to whom this has ever happened and are really grateful for help. I understand you can remedy this via the database but the “big hammer” solution I usually suggest  is here.

A problem with current versions of Moodle is that it’s very easy to remove yourself from the administrator role by accident – and then you can’t get back in.  In Moodle 2.0 there is a special page for managing administrators (Site administration>Permissions>Site administrators) to make you think twice before messing with it. And if you try to remove the primary administrator from there, it won’t let you, however hard you click on the “remove” button:

This will surely cut down on the number of panic posts in future years. Additionally, if you check out Site Administration>Users>Permissions>Assign System roles you’ll see that it is now no longer possible to assign a role throughout the whole of your Moodle to any old teacher or student: you can only do this with Course Creators and (the new role of) Managers. It makes sense for these two to have a global role – but students and teachers should only really be enrolled in the courses where they work – and Moodle 2.0 makes it so. This will hopefully cut out instances where admin accidentally assigned themselves as  a global student – or gave all their pupils the global student role and wondered why they could get into every course everwhere without passwords.

And as if that’s not enough, it’s now possible with a Check system permissons page and a Capability report page to know quickly and easily who can do what (and can’t do what) on your Moodle. So hopefully in 2011, Bart will get some different lines to write….

Dieser Beitrag wurde am Saturday, 14. August 2010 um 10:13 Uhr veröffentlicht und wurde unter der Kategorie Moodle abgelegt. Du kannst die Kommentare zu diesen Eintrag durch den RSS-Feed verfolgen. Du hast die Möglichkeit einen Kommentar zu hinterlassen, oder einen Trackback von deinem Weblog zu senden.

«  –  »


  1. I was referred to this site by a classmate, where we are learning to use moodle. I am excited to explore this site more as it has a wealth of information. It would be very helpful if there was a search box, since there is a lengthy archive.

    Comment: Elizabeth Symington – 10. September 2010 @ 10:29 pm

  2. Yes indeed – Search block now added 🙂

    Comment: admin – 10. September 2010 @ 11:21 pm

Leave a comment


The Blog Posts

Search the blog



WP-Design: Vlad -- Powered by WordPress -- XHTML 1.0