[DOCS-5558] Comment on: "manual/reference/command/createRole.txt" Created: 03/Jun/15  Updated: 03/Nov/17  Resolved: 04/Jun/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.04, mongodb 32bit

Location: http://docs.mongodb.org/manual/reference/command/createRole/#dbcmd.createRole
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/command/
Screen Resolution: 1600 x 900
repo: docs
source: reference/command/createRole


Participants:
Days since reply: 8 years, 37 weeks ago

 Description   

hello,

I've installed mongodb step by step as it been instructed in your website but when it comes to commands and roles and many other permission and scripts it doesn't work as it been described in website documents.

as an example here:
use admin
switched to db admin
> db.runCommand({ createRole: "myClusterwideAdmin",
privileges: [
{ resource:

{ cluster: true }

, actions: [ "addShard" ] },
{ resource:

{ db: "config", collection: "" }

, actions: [ "find", "update", "insert", "remove" ] },
{ resource:

{ db: "users", collection: "usersCollection" }

, actions: [ "update", "insert", "remove" ] },
{ resource:

{ db: "", collection: "" }

, actions: [ "find" ] }
],
roles: [

{ role: "read", db: "admin" }

],
writeConcern:

{ w: "majority" , wtimeout: 5000 }

})

and i keep receving,

"ok" : 0,
"errmsg" : "no such cmd: createRole",
"bad cmd" : {
"createRole" : "myClusterwideAdmin",

i'd really appreciate some help here.

Thank you



 Comments   
Comment by Kay Kim (Inactive) [ 04/Jun/15 ]

emailed reporter directly, instructing that you need version 2.6.x or greater.

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