Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ for MongoDB Administrator's Guide
  3. Configuring NetBackup for MongoDB
  4. Host user requirements
NetBackup™ for MongoDB Administrator's Guide

Host user requirements

Host User requirements for clusters running under mongod account:

  • Don't specify mongod service account as the host user in tpconfig.

  • On the server where MongoDB is installed, add the host user in the sudoers file.

  • Ensure to add a sudoer non-root account as the host user in tpconfig.

  • Ensure that the host user has a home directory.

  • Give that host user the ownership rights to all the directories that you have mentioned in the mongodb.conf file.

  • This step ensures that the backup host can access the directories to copy the required files for backup operations. For example, the user needs rights to mdbserver_location, logdir, oplog_location.

If the host user that you want to use is a non-root user or does not have root permissions for the MongoDB server, then you must complete the following steps:

  • Ensure that the host user credentials that are configured using the tpconfig command are of the host user account that is used to configure the MongoDB cluster (MongoDB daemon's host user account).

  • Give that host user the ownership rights to all the directories that you have mentioned in the mongodb.conf file. This step ensures that the backup host can access the directories to copy the required files for backup operations. For example, the user needs rights to mdbserver_location, logdir, oplog_location.

  • Ensure that the host user has ownership of the MongoDB database path and its contents. This ownership is required for the backup as well as restore operations.

  • On the server where MongoDB is installed, add the host user in the sudoers file.

Feedback

Was this page helpful?
Previous

About the MongoDB roles for protecting the data

Next

Managing backup hosts

Feedback

Was this page helpful?