Reset nextcloud admin password (snap install)
To reset the admin password of a nextcloud installed using the snap package, run
sudo nextcloud.occ user:resetpassword USER_NAME_HERE
It will ask for the new password, once you enter the password and confirmed it your nextcloud admin password will be changed.