From d10044c35e749ab79b063042e9bed80f534ae8ea Mon Sep 17 00:00:00 2001 From: Michael Paik Date: Mon, 15 Sep 2014 16:58:51 -0400 Subject: [PATCH] DOCS-3443 - clarification re: user for db.copyDatabase() with --auth --- source/includes/fact-copydb-behavior.rst | 4 ++++ source/reference/method/db.copyDatabase.txt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/source/includes/fact-copydb-behavior.rst b/source/includes/fact-copydb-behavior.rst index 4a09afeb888..1bc06236dd6 100644 --- a/source/includes/fact-copydb-behavior.rst +++ b/source/includes/fact-copydb-behavior.rst @@ -3,6 +3,10 @@ Be aware of the following properties of |copydb|: - |copydb| runs on the destination :program:`mongod` instance, i.e. the host receiving the copied data. +- If the destination :program:`mongod` has authorization enforcement enabled, + |copydb| *must* be executed with the credentials of a user present in the *source* + database who has the privileges outlined in :ref:`copyDatabases-requiredAccess`. + - |copydb| creates the target database if it does not exist. - |copydb| requires enough free disk space on the host diff --git a/source/reference/method/db.copyDatabase.txt b/source/reference/method/db.copyDatabase.txt index 7c43d9136d7..70bacde62cc 100644 --- a/source/reference/method/db.copyDatabase.txt +++ b/source/reference/method/db.copyDatabase.txt @@ -23,6 +23,8 @@ Behavior .. include:: /includes/fact-copydb-behavior.rst +.. _copyDatabases-requiredAccess: + Required Access ---------------