su - usermod -aG sudo <username> exit exit
Now log back in as user (so not as root) and go on with your day.
Failed and working projects, notes etc.
su - usermod -aG sudo <username> exit exit
Now log back in as user (so not as root) and go on with your day.
The normal ways to recover a lost password are:
If neither of these is an option, then you have a third option, and that is using the occ
command. See Using the 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.
unRAID docker: /config/www/nextcloud
unRAID user: abc
$ sudo -u abc php /config/www/nextcloud/occ user:resetpassword admin