Wiki Page: Mongodb User Management

  • Thread starter Thread starter David Berger
  • Start date Start date
Status
Not open for further replies.
D

David Berger

Guest
All databases will need at least one user for access. Modulus does not create one by default and no "root" user is available for use. You can create one for read/write access during creation , or you can manage all your users through the database dashboard. To do this navigate to the users tab. CREATING A USER To create a user, click the Add User button in the top right corner of the page. You will be prompted for a few details about the new user. CREATING A USER USING CLI (OPTIONAL) You can create a user in the Modulus CLI using mongo user create command to create a database user. $ modulus mongo user create Welcome to Modulus You are logged in as spiderman Please choose which database to use: 1) Lizard Locator DB 2) Green Goblin DB [?] database 2 Selected MongoDB database Green Goblin DB. [?] Enter username: johnny [?] Enter password: five [?] Read only permissions? (yes) no [✓] New MongoDB database user johnny created. CHANGING A USER'S PASSWORD To reset a user's password, or to update their username, click the gear icon to the right of their listing in the users table. A dialog will open that will allow you to update the user's information. DELETING A USER To delete a user, click the trashcan icon to the right of the user in the users table. It is located right next to the gear icon.

Continue reading...
 
Status
Not open for further replies.
Back
Top