NextCloud

Re: how to reset admin password (oc3, debian6, sqlite)
Quote
Postby danielw » Sat Jul 14, 2012 2:06 pm 
Hi all, I managed to reset the password of my admin account like this:

Code: Select all
[root@server ~]# echo -n "new-password" | sha1sum

[root@server ~]# cd var/www/html/owncloud/data/ 
[root@server data]# sqlite owncloud.db

sqlite> select * from oc_users; 
sqlite> UPDATE oc_users SET password = 'NEW_SHA1SUM' WHERE password = 'OLD_SHA1SUM'; 
sqlite> .quit


Hope this helps anyone out there!