Manual:createAndPromote.php
MediaWiki バージョン: | ≧ 1.7 |
MediaWiki ファイル: createAndPromote.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.39.3 • 1.38.6 • 1.35.10 |
クラス: | CreateAndPromote |
詳細
createAndPromote.php は、利用者の新規作成や既存の利用者の変更を行うメンテナンス スクリプトです。 For the corresponding user, the script can then grant additional rights (e.g. sysop, bureaucrat or bot rights) and change the user's password.
Since the script can be used not only to create new users, but also on existing users to promote them, and also to create a user without promoting them, the name createAndPromote.php
is somewhat misleading.
This script cannot be used to remove user groups from users.
オプション/引数
オプション | 説明 | 必須かどうか |
---|---|---|
<username> | The name of the user you want to create or modify and - depending on the other parameters - promote. The --force flag is required if a user with this name already exists. | 必須 |
<password> | 利用者のパスワードです。 | 省略可能 |
--bureaucrat | アカウントをビューロクラット グループに追加します | 省略可能 |
--sysop | アカウントを管理者 (sysop) グループに追加します | 省略可能 |
--bot | アカウントをボット (bot) グループに追加します | 省略可能 |
--interface-admin | Add the account to the interface-admin group | 省略可能 |
--custom-groups | 利用者を追加するグループのカンマ区切りのリストです。 これにより、利用者をあらゆるカスタム グループに追加できます。 Since MW 1.27, a user is only added to a custom group, if this group actually exists according to $wgGroupPermissions and $wgRevokePermissions . 存在しないグループは無視されます。 |
省略可能 |
--force | アカウントが存在する場合は、単に権限を与えるか、またはパスワードを変更します。 この場合は、新しいアカウントを作成しません。 | 省略可能 |
--help | このスクリプトについてヘルプ情報を表示します。 | 省略可能 |
使用法
php maintenance/createAndPromote.php <username> [ <password>| --bureaucrat| --sysop| --bot| --interface-admin| --custom-groups group1,group2| --force ]
Terminal
$ php maintenance/createAndPromote.php WikiSysop mypassword --bureaucrat --sysop --custom-groups developer mywiki: Creating and promoting User:WikiSysop into sysop, bureaucrat... done.
This creates a new user called "WikiSysop", sets the password and adds the user to the bureaucrat group, the sysop group and to the custom developer group.