Administrator
- Administrator
- All Products
Method
| Advantage
| Disadvantage
|
---|---|---|
Use pmimpprocess (recommended)
| More secure, with the one time sticky bit set as root.
| More difficult to customize, as pmimpprocess is an executable.
The sole purpose of this executable is to switch users.
|
Use default script
| Easily customizable. For example, you need to configure Kerberos.
| Requires the Secure Agent user to be able to sudo, which means adding the user to /etc/sudoer.
Once this is done, the user assumes near root-user privileges, which is less secure.
|
<Secure Agent installation directory/downloads/package-ICSAgentRuntime.<latest_version>/package/ICS/main/bin/rdtm
<Secure Agent installation directory>/apps/Data_Integration_Server/ext/pmimpprocess
chmod 755 pmimpprocess
chown root:root pmimpprocess chmod u+s pmimpprocess
<Secure Agent installation directory>/apps/Data_Integration_Server/ext/pmimpprocess
Data_Integration_Server/ext/infa-osprofile-dtm.sh
Update the script as appropriate to meet your needs.#!/bin/sh input_args="$@" env_var_file=$(mktemp) chmod +r "${env_var_file}" printenv | sed 's/\(^[^=]*\)=\(.*\)/export \1="\2"/'>"${env_var_file}" echo "sudo su - ${ENV_INFA_DTM_OSPROFILE_USER} -c . ${env_var_file}; cd ${PWD}; ${input_args}" >/tmp/xx sudo su - ${ENV_INFA_DTM_OSPROFILE_USER} -c ". ${env_var_file}; cd ${PWD}; ${input_args}" exit_code=$? rm "${env_var_file}" exit "${exit_code}"