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

accidental deletion of the one and only admin #102

Open
kalvinchang opened this issue Nov 17, 2018 · 2 comments
Open

accidental deletion of the one and only admin #102

kalvinchang opened this issue Nov 17, 2018 · 2 comments

Comments

@kalvinchang
Copy link

No description provided.

@pshirlyn
Copy link
Member

pshirlyn commented Nov 28, 2018

The workaround I used was manually changing the admin status of the user: mongo to access command line, then use admin, and db.users.find().pretty() to find the user.

You can update the admin status of this user with db.users.update(); see https://docs.mongodb.com/manual/reference/method/db.collection.update/ for more information.

If someone else has an easier fix, please let me know!

@SalahEddineBC
Copy link

you can update any user manually and give him admin privileges from the database directly

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

3 participants