HowTo: Mediawiki Reset a User Password

I forgot my mediawiki wiki software password, how do I reset my password?

You can easily reset mediawiki password as follows:

ADVERTISEMENTS

Using changePassword.php Script

You need to login to your server using ssh client where your mediawiki is installed. Next, you have to run the script from the command line. Once logged in go to the installation directory, then go to the maintenance subdirectory. In this example, mediawiki is installed at /home/httpd/wiki directory, enter:
$ cd /home/httpd/wiki/maintenance
Finally, run the following command:

 php changePassword.php --user=YOUR-USERNAME-HERE --password=YOUR-PASSWORD-HERE
# reset a password for Vivek user
php changePassword.php --user=Vivek --password=myPassowrd

Sample outputs:

Password set for Vivek

Now you user Vivek can login without any problem.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Hitesh Suthar Aug 23, 2016 @ 2:40

    I forget the wiki pedia password and username

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.