![]() ![]() Change Your Password from the Account Preferences ![]() So assuming that MediaWiki is directly installed in public_html, then to change the current working directory to the maintenance folder you have to execute the command cd public_html/maintenance. When a HostKnox customer logs into their account via SSH, the current working directory to which they are logged is the one that contains the public_html directory as a subfolder. The current working directory can be changed with the cd command. Otherwise, you have to include the path to the file in the command. Or you can use any other way that's convenient for you and the user to notify the user about the new password.Īs we mentioned, the above command will work if the current working directory is changed to the one containing the script (that's the maintenance folder). So you also have to send an email to the user with the new password. Note that with this method of changing passwords, the user is not notified about the password reset. For example, if the username is Example user and you want the new password to be t9?rQ a2, then execute the following: php changePassword.php -user="Example user" -password=t9?rQ a2. If the username consists of more than one word, put them in quotation marks. Replace username with the username of the user account for which you want to change the password and changedpassword with the new password for that account. Php changePassword.php -user=username -password=changedpassword If after you log into your hosting account via SSH you change the current working directory to maintenance, then to execute the script and change the password of a user you have to execute a command like this: If, for instance, MediaWiki is installed directly in the public_html directory on your account, then the path to the file in relation to that directory will be public_html/maintenance/changePassword.php. The maintenance folder itself is located in the root MediaWiki folder on the account. The script is labeled changePassword.php and it's in the maintenance folder of MediaWiki. You may also find useful the SSH articles in our knowledge base. For more information on how to access your account via SSH check out the tutorial on how to connect to your hosting account via SSH. All HostKnox customers have free SSH access as part of their MediaWiki hosting package. ![]() This is done by executing the script via SSH. It can be used by you (or other admins who have access) to reset the passwords of users. MediaWiki comes prepackaged with a script file for resetting user passwords. Reset Passwords with the changePassword.php Script After the user logs in with the temporary password this will automatically open a form for setting a new password for the account. Note that at that point the user will still be able to login with the original password (if they remember it). By default, that temporary password expires after 7 days. This will send to the email address associated with the username an email message containing an automatically generated temporary password. Type the username in it and click on the button under it. The Reset password form contains only a text field for the username of the user. For example, if the main URL is, then open /index.php/Special:PasswordReset. You have to add Special:PasswordReset to the main URL of your site. ![]() You can use the URL of the page to open it directly.Another way is to go to Tools menu on the left> Special pages button> Users and rights section on the following page> Reset password button.Go to the login page and there use the link Forgot your password.There are a few ways you can access the form: This is the easiest and recommended method for resetting user passwords for users who have forgotten their password. On the frontend of the site there's a form with which users can reset their own passwords or the passwords of other users. You should also make sure that you don't use the same password on other sites, for email addresses, etc. When setting a password it's recommended to use a random string of upper and lowercase letters, numbers and symbols that's at least 8 characters long. If the user knows their current password and they want to change it, they can do this from their account settings. Another way for admins who have access to the hosting account to reset the password of any user is to execute the script changePassword.php this is done via SSH. One way for a user to reset their password, or for another user to do it for that user, is to use frontend form for resetting user passwords. If a user has forgotten their password, there are a few ways for them to reset it. Knowledgebase How to reset and change user passwords in MediaWiki ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |