Resetting admin password

Resetting admin password

The Admin password can be reset in 2 ways:

1. Go at your Nextcloud URL and click to reset the password. You will receive an automated email with the short steps on how to change the password.

2. Or you can use the Web terminal
>
To reset the admin password, run the following occ command using the Web terminal:
sudo -u www-data php -f /app/code/occ user:resetpassword admin

If you had deleted the admin user previously by mistake, you can create it again:
sudo -u www-data php -f /app/code/occ user:add --display-name="Admin" -g admin admin

You can also make an existing user an admin:
sudo -u www-data php -f /app/code/occ group:adduser admin <username> -n