Hi sol,
it´s just a guess that Petr´s script could work in 1.7.1 too. I am the primary admin of my site and admin seems to be a special user anyway. For me it worked fine with the original name "admin" but that´s my username. The script seems to gather information from config.php and therefore I guess it works for primary admins.
I don´t know if there is a difference between these tables in 1.7.1 and 1.8 Beta I am just the try and error learner at this time.
Anyway I would try the repair funcion in phpMyAdmin for your
database even if it might not solve your permissions problem.
Some time ago I read (in
moodle docs?, how to update? "administrator logged out" search term?) how to use the special guest account/ password? in your database to get back the admin role.
PS: Sorry
Administration_FAQ#I_have_forgotten_the_admin_passwordit´s about forgotten password...
But there is still hope someone with more insight will be of help!
Good luck!
Oswald