anki-sync-server icon indicating copy to clipboard operation
anki-sync-server copied to clipboard

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

Open rsyqvthv opened this issue 4 years ago • 3 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.

rsyqvthv avatar Mar 24 '20 10:03 rsyqvthv

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

dobefore avatar Mar 25 '20 02:03 dobefore

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.

rsyqvthv avatar Mar 25 '20 17:03 rsyqvthv

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

dobefore avatar Mar 26 '20 01:03 dobefore