Hello Experts!
After few upgrades/updates/addons, I am not able to access my admin account,
I get an error saying user disabled.
I am also looking for instructions on how to connect using PuTTY, so I can copy paste easily.
My Installation
Windows Server
Oracle VM VirtualBox
ubuntu 20.04.1 LTS
Nextcloud 20.0.8.1 (Latest patch level, Major version still supported)
Things I tried, which didn’t work:
sudo -u www-data php occ user:resetpassword admin_username
sudo: php: command not found
Did you tried to run “sudo -u www-data php /the/path/to/nextcloud/occ user:resetpassword admin_username” ?
Example (In my case the httpd user is “apache” and not “www-data”): 1) Just to make sure about the correct username of the admin I ran:
sudo -u apache php /var/www/html/nextcloud/occ user:list
2) Then, I saw that my admin username is “Administrator”, so I ran:
sudo -u apache php /var/www/html/nextcloud/occ user:resetpassword Administrator
For that Putty issue:
There’s no problem about using Putty to connect via SSH, but since Windows 10 1803 (About 3 years ago) you can connect directly from cmd using:
ssh linux_user@linux_ip