Sudo privileges for the MongoDB environment OS user

Delphix Continuous Data Engine connects to the target host (via SSH) to perform the following operations: 

  1. Delphix Continuous Data Engine dynamically mounts and unmounts directories for linking and provisioning operations. This privilege is required because mount and unmount are typically reserved for superuser.

  2. Delphix Continuous Data Engine dynamically creates and removes directories for linking and provisioning operations.

The operations (1) and (2) will require sudo privileges for the OS user. 

Configuring sudo access on target environments (as root user)

  1. The sudo configuration exists in the /etc/sudoers file. To to add the privilege, you must edit this file either directly or by using a utility called visudo.

    1. vi /etc/sudoers or visudo

  1. Run the command below to add the privileges.

Defaults:delphix_os !requiretty
delphix_os ALL=NOPASSWD: /bin/mount,/bin/umount,/bin/mkdir,/bin/rmdir, /bin/ps

The above examples are for illustrative purposes and the sudo file configuration options are subject to change.