Resetting a Lost Admin Password
The normal ways to recover a lost password are:
-
Click the password reset link on the login screen; this appears after a failed login attempt. This works only if you have entered your email address on your Personal page in the ownCloud Web interface, so that the ownCloud server can email a reset link to you.
-
Ask another ownCloud server admin to reset it for you.
If neither of these is an option, then you have a third option, and that is using the occ command. occ has a command for resetting all user passwords which is: user:resetpassword.
docker compose exec owncloud occ user:resetpassword admin
Enter a new password:
Confirm the new password:
Successfully reset password for admin
See Using the occ Command to learn more about using the occ command.
| Password changes automatically log out all connected browsers/devices. |