Introduction:
The following are the instructions from the documentation:
Linux User Account Requirements
Administrative privileges are required to install the software. A user logged in as 'root' typically installs the software on the Linux server. However, in some environments, unrestricted root user access is not available.
If you cannot log in as root, you can use a user account with 'sudo' enabled to install and run the software. This user account must be granted the ability to use sudo to run a required, limited set of commands as the root user.
You can set up several sudo user accounts on the Linux server. These "super-user" accounts are necessary for starting and stopping CA Performance Center daemons.
The following command alias details the commands that the sudo user must be able to run. Run this command alias to set up your /etc/sudoers file:
Cmnd_Alias CA_PERFCENTER = /tmp/CAPerfCenterSetup.bin,
/etc/init.d/caperfcenter_console, /etc/init.d/caperfcenter_devicemanager,
/etc/init.d/caperfcenter_eventmanager, /etc/init.d/caperfcenter_sso, /etc/init.d/mysql,
/opt/CA/PerformanceCenter/Tools/bin/npcshell.sh,
/opt/CA/PerformanceCenter/SsoConfig,
/opt/CA/PerformanceCenter/Uninstall_MySql,
/opt/CA/PerformanceCenter/Uninstall_PerformanceCenter,
/opt/CA/PerformanceCenter/Uninstall_SSO
sudouser ALL = CA_PERFCENTER
You can add a reference to this alias for your sudo user in the /etc/sudoers file. You must then use the following command to install:
Instructions:
To update the /etc/sudoers file you should use the visudo command. If you copy:
Cmnd_Alias CA_PERFCENTER = /tmp/CAPerfCenterSetup.bin,
/etc/init.d/caperfcenter_console, /etc/init.d/caperfcenter_devicemanager,
/etc/init.d/caperfcenter_eventmanager, /etc/init.d/caperfcenter_sso, /etc/init.d/mysql,
/opt/CA/PerformanceCenter/Tools/bin/npcshell.sh,
/opt/CA/PerformanceCenter/SsoConfig,
/opt/CA/PerformanceCenter/Uninstall_MySql,
/opt/CA/PerformanceCenter/Uninstall_PerformanceCenter,
/opt/CA/PerformanceCenter/Uninstall_SSO
sudouser ALL = CA_PERFCENTER
... straight from the guide "as is" this can produce syntax errors that may look something like this:
>>> /etc/sudoers: syntax error near line 24 <<<
>>> /etc/sudoers: syntax error near line 27 <<<
>>> /etc/sudoers: syntax error near line 27 <<<
>>> /etc/sudoers: syntax error near line 28 <<<
>>> /etc/sudoers: syntax error near line 29 <<<
>>> /etc/sudoers: syntax error near line 30 <<<
>>> /etc/sudoers: syntax error near line 31 <<<
>>> /etc/sudoers: syntax error near line 32 <<<
>>> /etc/sudoers: syntax error near line 33 <<<
The following resolved the syntax errors and allowed the sudo install to continue:
Cmnd_Alias CA_PERFCENTER= /tmp/CAPerfCenterSetup.bin,\
/etc/init.d/caperfcenter_console, /etc/init.d/caperfcenter_devicemanager,\
/etc/init.d/caperfcenter_eventmanager, /etc/init.d/caperfcenter_sso, /etc/init.d/mysql,\
/opt/CA/PerformanceCenter/Tools/bin/npcshell.sh,\
/opt/CA/PerformanceCenter/SsoConfig,\
/opt/CA/PerformanceCenter/Uninstall_MySql,\
/opt/CA/PerformanceCenter/Uninstall_PerformanceCenter,\
/opt/CA/PerformanceCenter/Uninstall_SSO
sudouser ALL = CA_PERFCENTER
or ....
Cmnd_Alias CA_PERFCENTER= /tmp/CAPerfCenterSetup.bin, /etc/init.d/caperfcenter_console, /etc/init.d/caperfcenter_devicemanager, /etc/init.d/caperfcenter_eventmanager, /etc/init.d/caperfcenter_sso,
/etc/init.d/mysql, /opt/CA/PerformanceCenter/Tools/bin/npcshell.sh, /opt/CA/PerformanceCenter/SsoConfig, /opt/CA/PerformanceCenter/Uninstall_MySql, /opt/CA/
PerformanceCenter/Uninstall_PerformanceCenter, /opt/CA/PerformanceCenter/Uninstall_SSO
sudouser ALL = CA_PERFCENTER