Nextcloud password recovery

Liquidsmoke

New Member
Joined
Jun 21, 2020
Messages
1
Reaction score
0
Credits
14
Hello all o/

Noob question here.

I have setup a Nextcloud instance on my ubuntu server, and i now seem to have lost my password to nextcloud.
Looking at the documentation in nextcloud i found this occ command to reset the password:

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


I then ran this command (my user name is bro)

bro@esterbro:~$ sudo -u www-data php /var/www/nextcloud/occ user:resetpassword bro
[sudo] password for bro:
sudo: php: command not found


Am i using the command wrong ?
 


The problem is probably that the binary is not in your user path. Run echo $PATH in the terminal to check what paths your user is able to see. If that is the case you will need to add the path to your user profile.

Try to see where the php binary located at on your system.
locate php | grep bin
 
Last edited:

Members online


Latest posts

Top