[DOCS-2697] Comment on: "mms/management/permissions.txt" Created: 10/Feb/14  Updated: 03/Nov/17  Resolved: 12/Feb/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.1

Type: Improvement Priority: Major - P3
Reporter: Linda Qin Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: mms
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://mms.mongodb.com/help/management/permissions/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
Referrer: https://mms.mongodb.com/help/management/
Screen Resolution: 1280 x 800
repo: REPONAME
source: management/permissions


Participants:
Days since reply: 10 years, 1 week, 1 day ago

 Description   

Currently comma is missing in the command to add the MMS backup user in this page. If we copy this command, replace the username/password and run the command to add the user, it will fail with "SyntaxError: Unexpected identifier".

The command is like this in the doc:

use admin
db.addUser( { user: "<username>",
              pwd: "<password>",
              roles: [ "clusterAdmin",
                       "readAnyDatabase",
                       "userAdminAnyDatabase"
                     ] //The comma is missing here
              otherDBRoles: { local: ["readWrite"],
                              admin: ["readWrite"] }
             } )

It should be:

use admin
db.addUser( { user: "<username>",
              pwd: "<password>",
              roles: [ "clusterAdmin",
                       "readAnyDatabase",
                       "userAdminAnyDatabase"
                     ],
              otherDBRoles: { local: ["readWrite"],
                              admin: ["readWrite"] }
             } )



 Comments   
Comment by Githook User [ 11/Feb/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2697: adding comma
Branch: master
https://github.com/10gen/mms-docs/commit/beb14c240daa22762970635b331437ddb1792f91

Generated at Thu Feb 08 07:44:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.