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!
Cookies helfen bei der Bereitstellung von Inhalten. Durch die Nutzung dieser Seiten erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Rechner gespeichert werden. Weitere Information
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Noncommercial-Share Alike 4.0 International