Manual:changePassword.php

From mediawiki.org
This page is a translated version of the page Manual:ChangePassword.php and the translation is 83% complete.
MediaWiki バージョン:
1.6

詳細

changePassword.php は、ウィキの利用者のパスワードを変更するメンテナンス スクリプトです。 注意点はパスワードは最短でも10文字以上という決まりです。

オプション/引数

オプション 説明 必須かどうか
--user 操作対象の利用者名 省略可能
--userid 操作対象の利用者 ID 省略可能
--password 使用するパスワード 必須

使用法

php maintenance/changePassword.php [--user| --userid| --password ]


Terminal

利用者名とパスワードにはスペースを含めることができるので、シェル (bash または cmd.exe; 以下の Troubleshooting を参照) から保護する必要があります。

Terminal

トラブルシューティング

  • If your MediaWiki installation uses a memory cache, such as APC, memcached or Redis, then the user object is cached. Thus after making SQL changes you must flush the cache before a user can log in with the new password.
  • Windows has special challenges with parsing double-quoted strings, as when a username or password contains spaces in the second example above.
    • Occasionally triple ("""quoted string""") and quadruple sets of double quotes will solve your problems with Windows' command shell, cmd.exe. You may be happier, though, to try Cygwin and follow the Unix conventions for quoting strings, which require fewer quotation marks.

関連項目