Categories
Mongo

Mongo notes

Add Authentication on Fedora system
This action will allow you to login to mongo using created users. One step closer to securing mongo database.

1. edit /etc/mongod.conf:


# security Options - Authorization and other security settings
security:
  # Private key for cluster authentication
  #keyFile: 

  # Run with/without security (enabled|disabled, disabled by default)
  authorization: enabled
  • uncomment security
  • authorization: enabled

Leave a Reply

Your email address will not be published. Required fields are marked *