Page MenuHomePhabricator

Add support for BotPasswords in generate_user_files.py
Closed, ResolvedPublic

Description

BotPasswords (i.e. Special:BotPasswords) are only fully supported via the password_file parameter in user-config.py.

It would therefore be nice if generate_user_files.py could support this too.

Event Timeline

Framawiki triaged this task as Medium priority.Apr 25 2017, 10:45 PM
Framawiki subscribed.

Notes:

  • what about same username on different wiki farms ?
  • if a user-password.py already exist ?

It's important to make sure that the newly created password file has appropriate permissions set ( 0o600) otherwise it can be a security risk for the user.

It's important to make sure that the newly created password file has appropriate permissions set ( 0o600) otherwise it can be a security risk for the user.

Edited, please check the patch again.

Change 350448 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Add BotPasswords in generate_user_files.py

https://gerrit.wikimedia.org/r/350448