DokuWiki

It's better when it's simple

User Tools

Site Tools


faq:forgotten_password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
faq:forgotten_password [2009-07-11 17:16] – created achfaq:forgotten_password [2017-08-02 12:34] 46.239.162.34
Line 12: Line 12:
     * change the superuser to your newly registered user <code>$conf['superuser'] = 'foo';</code>     * change the superuser to your newly registered user <code>$conf['superuser'] = 'foo';</code>
     * **or** if the superuser is a group like <code>$conf['superuser'] = '@admin';</code> just remember its name     * **or** if the superuser is a group like <code>$conf['superuser'] = '@admin';</code> just remember its name
-      - open ''conf/acl.auth.php''+      - open ''conf/users.auth.php''
       - search the line that begins with the name of your newly registered user (it should be the last line)       - search the line that begins with the name of your newly registered user (it should be the last line)
       - and add the name of the superuser group to the very end of that line, like <code>...:user,admin</code>       - and add the name of the superuser group to the very end of that line, like <code>...:user,admin</code>
Line 20: Line 20:
   - login again as the old user   - login again as the old user
   - and delete the new one again (not necessary, but advisable if you're concerned about security)   - 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?
 +
 +:!: 
 +  - open ''conf/users.auth.php''
 +  - add new line for temporary user <code>deleteme:$1$4fd0ad31$.cId7p1uxI4a.RcrH81On0:-:-:admin,user </code> where ''$1$4fd0ad31$.cId7p1uxI4a.RcrH81On0'' is hashed ''admin''
 +  - login for user: ''deleteme'' with password ''admin''
 +  - change the password of your old user
 +  - logout
 +  - login as the old user
 +  - delete ''deleteme'' user
 +
  
faq/forgotten_password.txt · Last modified: 2020-05-07 16:06 by Michaelsy

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki