Lost password, cannot get into nextcloud

I cannot get into my nextcloud , It is running on my trunas server, I dont know how or where to get into the occ to try and reset a password, I am a newbi can someone please assist
Thank you so much


Resetting a lost admin password — Nextcloud latest Administration Manual latest documentation

Thank you but i dont know how to get into the occ to run the script

Can you get in the following folder: /var/www/nextcloud/ ?

  • if yes, then just run the command: sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin

A Docker container consists of network settings, volumes, and images. The location of Docker files depends on your operating system. Here is an overview for the most used operating systems:

Ubuntu: /var/lib/docker/
Fedora: /var/lib/docker/
Debian: /var/lib/docker/
Windows: C:\ProgramData\DockerDesktop
MacOS: ~/Library/Containers/com.docker.docker/Data/vms/0/

I am not using docker, but I guess you first locate your docker image of Nextcloud (something like /var/lib/docker/nextcloud). Then try to find the folder where lives the occ file. Then try to run the command (run from the command line):

  • sudo -u www-data php /var/lib/docker/nextcloud/occ user:resetpassword admin