Next Cloud - Password Reset

NAVI

Dabbler
Joined
Jun 24, 2022
Messages
17
Attachments with dashboard / shell included. Please let me know if there is anything else that may assist with a resolution.

So I couldn't remember my password for NextCloud. After a bit of sifting through my notes from when I initially set everything up I did locate instructions to show the password. Which worked! My new problem is it wants me to reset the password and I don't know what email it's sending the reset to...
*password information instructions*
Now you need to find out the username and password to your nextcloud account.
Go back to Plugins and click START.
Go to Jails from the left side panel.
Click on nextcloud and click on shell.
Enter the following command.
cat /root/PLUGIN_INFO


I found several shell suggestions to reset the password but none worked. It's very likely I'm doing something wrong but below are the attempted codes.
(Jail, start nextCloud, shell) Below is the code I ran and the error it gave

-u www-data php /var/www/nextcloud/occ user:resetpassword username
-u: command not found

su -s /bin/sh www-data -c 'php occ user:resetpassword --password-from-env username'
su: unknown login: /bin/sh


cd /usr/pbi/owncloud-amd64/www/owncloud
/usr/pbi/owncloud-amd64/bin/php ./occ files:scan

/usr/pbi/owncloud-amd64/www/owncloud: No such file or directory
/usr/pbi/owncloud-amd64/bin/php: Command not found.


Any and all suggestions moving forward are appreciated.
 

Attachments

  • @nextcloud.PNG
    @nextcloud.PNG
    29.5 KB · Views: 160
  • dashboard.PNG
    dashboard.PNG
    63.6 KB · Views: 179
Top