Sudo privileges for the MongoDB environment OS user
Delphix Continuous Data Engine connects to the target host (via SSH) to perform the following operations:
-
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.
-
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)
-
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
.-
vi /etc/sudoers
orvisudo
-
-
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.