Files
nextcloud-docs/admin_manual/configuration_user/reset_admin_password.rst
Côme Chilliet a182d3cc30 enh: Move occ configuration to top level
It’s not specific to server configuration and should be easy to find in
 the admin manual.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-17 16:36:43 +02:00

27 lines
919 B
ReStructuredText

===============================
Resetting a lost admin password
===============================
The normal ways to recover a lost password are:
1. 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 Nextcloud Web interface, so that the Nextcloud
server can email a reset link to you.
2. Ask another Nextcloud 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. See :doc:`../occ_command` to
learn more about using the ``occ`` command.
::
$ sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin
Enter a new password:
Confirm the new password:
Successfully reset password for admin
If your Nextcloud username is not ``admin``, then substitute your Nextcloud
username.