Can't change password via occ due to encryption?

Hey,

I run my own Nextcloud server that has just 3 (family) accounts, 1 of which is mine > and that is also the only account with admin rights.

Today I tried to login and the webinterface said my password had expired. I chose the ‘forgot password’ option and the webinterface stated to have emailed a reset link. But, since I do not have an email set, I knew it wouldn’t come.

So I went to the servers cli environment and tried to reset the password via the OCC command. However: I now get a warning saying that, because I use encryption, changing my password will result in loss of data.

So I am at a loss now > how should I be able to safely reset my password now or allow my own account to log in again?

Thnx!

Anyone any idea?

Server-side encryption is tricky and helpful for external storage. Therefore, the documentation warns about it. For the recovery, you can create recovery passwords:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_configuration.html#enabling-users-file-recovery-keys

Big question is, do you know your old password?