It's better when it's simple

User Tools

Site Tools


Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community

Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy


Forgotten Password

:?: I forgot my password. What can I do?

:!: If the admin didn't disable any necessary functions, you can go to the login page and click on “Send new password” (see How to login for more information). If this doesn't work, ask the admin to give you a new password in the UserManager.

:?: But sending a new password doesn't work and I am the admin and cannot access the User Manager. How can I retrieve my password and get back my admin permissions?

:!: You can

  1. register a new user
  2. open conf/local.php
    • change the superuser to your newly registered user
      $conf['superuser'] = 'foo';
    • or if the superuser is a group like
      $conf['superuser'] = '@admin';

      just remember its name

      1. open conf/users.auth.php
      2. search the line that begins with the name of your newly registered user (it should be the last line)
      3. and add the name of the superuser group to the very end of that line, like
  3. then you can login as the new user
  4. change the password of your old user
  5. logout
  6. login again as the old user
  7. and delete the new one again (not necessary, but advisable if you're concerned about security)

:?: What if I am the admin and I turned off registration?


  1. open conf/users.auth.php
  2. add new line for temporary user

    where $1$4fd0ad31$.cId7p1uxI4a.RcrH81On0 is hashed admin

  3. login for user: deleteme with password admin
  4. change the password of your old user
  5. logout
  6. login as the old user
  7. delete deleteme user

See also

faq/forgotten_password.txt · Last modified: 2020-05-07 16:06 by Michaelsy