Password reset via docker desktop

Hello!

I am running Nextcloud via Docker Deskton on Windows.
I am logged in on my smartphone.
I forgot the password for my account (it is admin account)
I cannot reset the password (no email is coming)

How can I reset my password with docker desktop on windows?

Thanks all!

Liebe Community,

ich habe NC auf meinem Windows-Rechner laufen, der bei mir zuhause als Server läuft. Das ganze läuft auf AIO Docker Desktop.

Das Problem:
Habe nun das Passwort für meinen NC Account vergessen (der einzige mit Admin-Rechten, es gibt noch einen anderen aber der ist kein Admin) und das Passwort zurückzusetzen funktioniert nicht, da keine Mail kommt.

Kann ich das Passwort irgendwie über den Docker Desktop auf Windows zurücksetzen?

Am Handy bin ich noch eingeloggt, aber ohne Passwort kann ich da auch keine wichtigen Einstellungen ändern.

Danke euch!

Nextcloud comes with occ command line utility which allows you to perform maintenance tasks including password reset.

du kannst auf der Kommandozeile occ ausführen und damit dein User Passwort zurücksetzen

Thanks for getting back!
I am aware of this, however there seems to be little to no beginner friendly guides for people who are not familiar with this software.

What I did:
Open Docker Desktop
=> click on Containers
=> click on nextcloud-aio-nextcloud
=> click on Exec
=> enter: “occ user:resetpassword admin”
=> which leads to the whole command “/var/www/html # occ user:resetpassword admin”
=> response “/bin/sh: occ: not found”

I am well aware that something (or everthing) of what I did is terribly wrong - however there seems to be noone giving easy guides in normal people language on how to do it correctly - so your help is very much appreciated!

Thanks!
Gregor

Ich kann und man kann sind leider drastisch unterschiedliche Dinge :wink:

Es scheint keinerlei anfängerfreundliche Guides zu Nextcloud/Docker zu geben für Leute, die sich nicht mit der Software auskennen.

Ich habe:

=> Docker Desktop geöffnet
=> Containers angeklickt
=> nextcloud-aio-nextcloud angeklickt
=> Exec angeklickt
=> “occ user:resetpassword admin” eingegeben
=> der ganze Befehl war dann “/var/www/html # occ user:resetpassword admin”
=> und die Antwort “/bin/sh: occ: not found”

Irgendwo bin ich komplett falsch abgebogen, weshalb ich über einfache, deppensichere Hilfe, die kein Wissen voraussetzt, das ich nicht habe und nirgends finde, unendlich dankbar!

there are many different way to run Nextcloud and Docker desktop is definitely not the most common one and not a preferred one. Looking for beginner friendly guides I would recommend you choose more common installation ways. And at the end you as an admin must familiarize yourself with the technology you are administering otherwise you will end up in trouble sooner or later. 101: Self-hosting information for beginners

with the regular Docker the command would be docker exec --user www-data nextcloud-aio-nextcloud php occ user:resetpassword admin I think it is similar on docker-on-windows. The command should run as webserver user ( --user www-data) and the executable itself is php and occ ... is an argument.

UPDATE: how-to-run-occ-commands in AiO

Simply run the following:
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ your-command.
Of course your-command needs to be exchanged with the command that you want to run.

Google hat folgendes gefunden: https://docs.docker.com/desktop/use-desktop/container/#integrated-terminal

Eventuell hilft dir das ja den Befehl entsprechendend zu adptieren.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.