| | 103 | == Resetting an e2e passphrase == |
| | 104 | |
| | 105 | This seems to be a flaw in the e2e model, but it is possible for an administrator to reset a user's e2e key if they lose the passphrase. Check out this [https://github.com/nextcloud/end_to_end_encryption/issues/32 issue for the latst]. |
| | 106 | |
| | 107 | At the time of this writing, the following works: |
| | 108 | |
| | 109 | * Enter the end_to_end_encryption folder in your appdata folder. Your appdata folder is a folder inside your data folder (the folder containing all your nextcloud files). It has a randomly generated name that starts with appdata like appdata_487461775a51. The end_to_end_encryption folder has three folders: meta-data, private-keys and public-keys. |
| | 110 | * If your username is joe, then remove meta-data/joe, private-keys/joe.private.key, public-keys/joe.public.key |
| | 111 | * In the database (replace joe with your username): |
| | 112 | {{{ |
| | 113 | DELETE FROM oc_filecache WHERE path LIKE 'appdata_%/end_to_end_encryption/meta-data/joe%'; |
| | 114 | DELETE FROM oc_filecache WHERE path LIKE 'appdata_%/end_to_end_encryption/%-keys/joe.%.key'; |
| | 115 | }}} |
| | 116 | * launch the maintenance crontab manually as the www-data user (/usr/bin/php -f /var/www/nextcloud/cron.php) |
| | 117 | |