XCOMD fails to start when a user uses the "sudo" command to start the daemon (e.g. sudo xcomd). The following messages are received:
2023/11/21 20:43:51 PRG=xcomd PID=nnnn
XCOMU0465E Check of xcom.glb pathnames failed.
[linux@xxxxxx ~]$ 2023/11/21 20:43:51 PRG=xcomd PID=nnnn
XCOMU0466E Unable to create an index file for queue.
XCOM Data Transport for Linux r11.6 and r12.0
The messages are caused because the XCOM environmental variables are missing from the sudoers file.
Please modify the /etc/sudoers file using command "visudo" to add the following statement:
Defaults env_keep+="XCOM_HOME XCOM_JAVA_HOME"
This will allow the XCOM environmental variables to be available to the sudo user that will start xcom when using command "sudo xcomd"