Skip to end of metadata
Go to start of metadata

FileCloud Admin can reset the Admin password from command line, in case the current password is forgotten.  The reset password script also clears any admin login locks. It also disables the 2 Factor Authentication, if enabled.

Prerequisite

 

 

Enable PHP CLI Mode

To run the following commands, PHP CLI mode needs to be enabled.

In Linux, edit the file /etc/php5/cli/php.ini and make sure the module mongo.so is enabled. Without this the reset password command will fail.
To enable mongo.so, add the following line at the end of file /etc/php5/cli/php.ini (if this line doesn't exist in the file)
extension=mongo.so

In Windows, the PHP cli mode is already enabled in FileCloud installer.

Linux

In a linux command shell, type the following commands. After the commands are executed, Admin's password will be reset to 'password'.

Resetting password in Linux
user@li111-150:~$ cd /var/www/resources/backup
user@li111-150:/var/www/resources/backup$ php ./resetadminpw.php

If the the reset password command fails, ensure mongo.so is enabled for php client.
To enable mongo.so, add the following line at the end of file /etc/php5/cli/php.ini (if this line doesn't exist in the file)

Windows

In a windows command shell, type the following commands. After the commands are executed, Admin's password will be reset to 'password'.

Resetting password in Windows
C:\WINDOWS\system32>cd c:\xampp\htdocs\resources\backup
c:\xampp\htdocs\resources\backup>c:\xampp\php\php.exe resetadminpw.php

Reset Admin Password in Multi-Site Setups

To reset password for another site, pass in the hostname using -h parameter

resetamdinpw.php -h site2.xyz.com

  • No labels