Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
*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
*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
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"] }
|
} )
|