not authorized on admin to execute command

1,051 views
Skip to first unread message

网络突爆郭晶晶遭透视偷拍短片 郭晶晶透视图片下载 郭晶晶红外门被偷拍照 @

unread,
Dec 16, 2014, 11:31:12 AM12/16/14
to mongo...@googlegroups.com
Hi my friends:
   > db.system.users.remove({user:"moshiyou"});
WriteResult({
"writeError" : {
"code" : 13,
"errmsg" : "not authorized on admin to execute command { delete: \"system.users\", deletes: [ { q: { user: \"moshiyou\" }, limit: 0.0 } ], ordered: true }"
}
})
What's happened ,How to solve? thank you!

Andy Schwerin

unread,
Dec 17, 2014, 11:43:41 AM12/17/14
to mongo...@googlegroups.com
You are apparently on MongoDB 2.6 or later.  You can no longer write directly to system.users.  Try the  following command in the shell:

db.dropUser("moshiyou")

Also, this mail should have been directed to mongodb-users.  This list is for developers implementing MongoDB, not developers writing software that uses mongodb.

--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To post to this group, send email to mongo...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-dev.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages