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 ---------------