Hello,
I am new to MediaWiki and couldn't find the answer to my problem in the docs. Maybe I was just blind but I hope someone here can help me.
I have to manage a MediaWiki installation that has already bin in place for a while. I have to add an user with admin rights, for example to change the navigation on the very left. Currently there seems to be no admin user (or sysop). I have root access to the file system and the MySQL db. In the user table there is only one entry for myself and in the user_groups, there are no entries at all.
Is there a way to add a user with all admin rights without doing a new installation? There is a lot of content in the wiki already.
any help very welcome!
Claus
If you add entries to your user_groups table for yourself as bureaucrat and sysop, that should do the trick.
/Sam
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Claus Hausberger Sent: 23 October 2009 09:40 To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Question about how to get admin access
Hello,
I am new to MediaWiki and couldn't find the answer to my problem in the docs. Maybe I was just blind but I hope someone here can help me.
I have to manage a MediaWiki installation that has already bin in place for a while. I have to add an user with admin rights, for example to change the navigation on the very left. Currently there seems to be no admin user (or sysop). I have root access to the file system and the MySQL db. In the user table there is only one entry for myself and in the user_groups, there are no entries at all.
Is there a way to add a user with all admin rights without doing a new installation? There is a lot of content in the wiki already.
any help very welcome!
Claus -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
Hi,
Run in mysql:
INSERT INTO `{$PREFIX}_user_groups` ( `ug_user` , `ug_group` ) VALUES ( '{USER_ID, you get in the table `{$PREFIX}_user`}', 'sysop' );
INSERT INTO `{$PREFIX}_user_groups` ( `ug_user` , `ug_group` ) VALUES ( '{USER_ID, you get in the table `{$PREFIX}_user`}', 'bureaucrat' );
Now you should can use the page "Special:UserRights" in your wiki.
Viele Grüße Jan
-----Ursprüngliche Nachricht----- Von: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im Auftrag von Claus Hausberger Gesendet: Freitag, 23. Oktober 2009 10:40 An: mediawiki-l@lists.wikimedia.org Betreff: [Mediawiki-l] Question about how to get admin access
Hello,
I am new to MediaWiki and couldn't find the answer to my problem in the docs. Maybe I was just blind but I hope someone here can help me.
I have to manage a MediaWiki installation that has already bin in place for a while. I have to add an user with admin rights, for example to change the navigation on the very left. Currently there seems to be no admin user (or sysop). I have root access to the file system and the MySQL db. In the user table there is only one entry for myself and in the user_groups, there are no entries at all.
Is there a way to add a user with all admin rights without doing a new installation? There is a lot of content in the wiki already.
any help very welcome!
Claus
I am new to MediaWiki and couldn't find the answer to my problem in the docs. Maybe I was just blind but I hope someone here can help me.
The real way to do maintenance actions is of course by using eval interface:
flu:phase3 midom$ php maintenance/eval.php
User::newFromName("Eviluser")->addGroup("sysop");
Logout, login, here you are.
-- Domas
Thanks a lot to everyone for the answers.
Claus
I am new to MediaWiki and couldn't find the answer to my problem in the docs. Maybe I was just blind but I hope someone here can help me.
The real way to do maintenance actions is of course by using eval interface:
flu:phase3 midom$ php maintenance/eval.php
User::newFromName("Eviluser")->addGroup("sysop");
Logout, login, here you are.
-- Domas
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Claus,
Another answer, I think, would be to use the maintenance/createAndPromote.php script. I'm pretty sure if you have command line access to the wiki that will make you a new admin user.
-Courtney
mediawiki-l@lists.wikimedia.org