Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rsyqvthv opened this issue Mar 24, 2020 · 3 comments

Comments

@rsyqvthv
Copy link

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.

@dobefore
Copy link

dobefore commented Mar 25, 2020

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

@rsyqvthv
Copy link
Author

rsyqvthv commented Mar 25, 2020

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.

@dobefore
Copy link

dobefore commented Mar 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants