Thanks for your help Oswald. I followed your links, but really they help with finding the password, and that much I know. Petr's script did kind of work. It added a row to mdle_role_assignments, but it just didn't seem to work it's mojo in 1.7.1. I really wish I knew which table/row to update to undo this admin lock. But as this was a test install (though my colleague was starting to use it in the classroom) I may just cut my losses. Will make sure that we use 1.7.1 in production next term.... ;)
Roles and permissions
Disaster with roles
This discussion has been locked so you can no longer reply to it.