tsudoko / anki-sync-server

Self-hosted Anki sync server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can I rest the password, when I don't remember the username of anki-sync-server

rsyqvthv opened this issue · comments

I've been use anki-sync-server for couple of years for sync between pc and mobile.

after upgrade anki to 2.1, I noticed I have to login server again, but unfortunately I didn't remember the username and password of it. I should note them in my password log, but I didn't.

how can I reset them?
I am a novice of linux stuff, would very appreciate if you can let me know more step by step way. thanks.

U dont have to reset your passwd,U just need to do the following step:
1.export all card and media in apkg using Phone anki
2.in anki sync server ,delete existing user and add a new user
3.import apkg with new user

2.in anki sync server ,delete existing user and add a new user

Thanks for your replying,

but sorry for my stupid, as I mentioned before, I've even forget the username as well as password. :(

so, would you please give me a moment for hint that
how to find out which user is assign with anki-sync-server.

I've tried less /etc/passwd, but seems there isn't anything I can tell related with anki.

thanks.

how to find out which user is assign with anki-sync-server.

I've tried less /etc/passwd, but seems there isn't anything I can tell related with anki.

thanks.
how to find out username?
Go to the folder where you installed the anki-sync-server.run this command,python ankisyncctl.py lsuser(python or python3 depends on your linux OS)
how to get back passwd
run this command, python ankisyncctl.py passwd username ,(replace username with your username)after pounching the enter button,you're required to input your new passwd