Topic on Project:Support desk

[RESOLVED] No sysop, bureaucrat, etc. user on a local install

5
174.20.67.76 (talkcontribs)

I have a local install of MediaWiki 1.15.1 with PHP 5.3.2 and MySQL 5.1.69. Going to Special:ListUsers/sysop shows no users. The only user listed on the wiki is me, but I don't have bureaucrat, sysop or other elevated rights. I want to import the Chart templates, but doing so by hand without elevated user rights is exhausting. I have access to the LocalSettings.php and AdminSettings.php files; neither of them lists any admin, bureaucrat or sysop users. I can grant myself full rights in PHPMyAdmin, but those don't seem to translate to rights from within the wiki itself. I don't know if I somehow managed to delete the root user or if it never existed.

How do I grant myself rights to import templates? (Being able to delete pages, etc. would also be handy.)

Ciencia Al Poder (talkcontribs)
174.20.67.76 (talkcontribs)

Thank you for the response!

I tried going to /maintenance directory and running that script, but I get repeated "Please provide a username and password for the new account", even though I am using a pre-existing (and indeed, the only) account, and even though I have the --force flag in the command. I have tried it both with and without sudo. (I'm running Linux.) What else should I do?

Thanks again!

Ciencia Al Poder (talkcontribs)

Does your username contain spaces/underscores? I don't know if you should use spaces or underscores for user name, so try both and see if that works. Use double quotes if you're using spaces.

Also, if your username contains non-ascii characters, the shell may be misinterpreting the characters, and not matching your real account.

You could also create a new bureaucrat, login with that account and give yourself permissions with that new account, and then disable it.

174.20.67.76 (talkcontribs)

I tried your solution of adding a new bureaucrat account, then giving my main account privileges. It worked fine. Thank you!

Strange that the password has to be entered in cleartext within the terminal for that script. And weird if usernames have to contain underscores or spaces! But anyway, it seems to have worked. Thanks again.

Reply to "[RESOLVED] No sysop, bureaucrat, etc. user on a local install"