Login via SSH to the server
$ 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
Tips, tricks, how-to, tutorials – all about Information Technology – Since 2004
Login via SSH to the server
$ 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