quill icon indicating copy to clipboard operation
quill copied to clipboard

accidental deletion of the one and only admin

Open kalvinchang opened this issue 6 years ago • 2 comments

kalvinchang avatar Nov 17 '18 20:11 kalvinchang

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!

pshirlyn avatar Nov 28 '18 04:11 pshirlyn

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

SalahEddineBC avatar Dec 06 '18 00:12 SalahEddineBC