Technical Notes |
|
When installing Verastream Host Integrator on UNIX based systems, such as UNIX/Linux, Solaris, or AIX, you must be logged in to the system as root. After installation, the Verastream processes typically run under the root userID. This technical note explains this requirement and provides a potential alternative.
Note: AIX support is available in version 6.5 or higher (not in version 6.0). For additional information about what operating systems are supported in different versions of Verastream Host Integrator, see Technical Note 10030.
For further information about installing this product, download the Verastream Host Integrator Installation Guide from the Solution Library at http://support.attachmate.com/manuals/vsdocs.html.
Note: Before you can download this file, you must enter your volume purchase account (VPA) number for your Verastream Host Integrator product.
The installation documentation states that you should be logged in to the system as root when installing Host Integrator, and that the Verastream processes are subsequently run as root. Root access is used for the following reasons:
If your corporate security protocol requires that you not run processes as root whenever possible, you may be able to run the Verastream processes with a non-root account. There is nothing inherent to the Verastream software design that requires Verastream to run as root; however, to run as non-root, resource restrictions of the host operating system may need to be modified.
Before attempting to configure Verastream to run as non-root, it is important to note the following:
Theoretically, you should be able to configure any host so that Verastream can run as a non-root process. The following steps have been successfully used to run Verastream as a non-root daemon on Sun Solaris 7 (SunOS 5.7) and Solaris 8 (SunOS 5.8) systems.
Note: These steps are specific to the Sun Solaris operating system; however, you may be able to use them as a starting point when configuring other operating systems to run with Verastream using a non-root UserID. Additional configuration steps, different command syntax, and different directory and file names may be required when configuring different operating systems, such as Linux, HP-UX, and AIX.
chown -R vhiuser:vhigroup /etc/vhi /etc/vhi/bin/atstart -status/etc/vhi/bin/atstart -stop all/etc/vhi/bin/atstart -status/etc/vhi/bin/atstart -start all/etc/vhi/bin/atstart -statusAll installed components should show a status of "Started".
ps -aef | grep vhiThe host response should look similar to the following:
| |
UID |
PID |
PID |
... |
CMD |
| |
vhiuser |
349 |
1 |
... |
/etc/vhi/bin/atstart -start logMgr |
| |
vhiuser |
352 |
349 |
... |
etc/vhi/jre/bin/../bin/sparc/ native_threads/vhi-logmgr -native -Djava.library |
| |
vhiuser |
402 |
1 |
... |
/etc/vhi/bin/atstart -start AADS |
| |
vhiuser |
403 |
402 |
... |
/etc/vhi/jre/bin/../bin/sparc/ native_threads/vhi-aads -native -Djava.library.pa |
| |
vhiuser |
419 |
1 |
... |
/etc/vhi/bin/atstart -start Server |
| |
vhiuser |
420 |
419 |
... |
/etc/vhi/bin/sesssrvr |
| |
vhiuser |
422 |
1 |
... |
/etc/vhi/bin/atstart -start WebStation |
| |
vhiuser |
423 |
422 |
... |
/etc/vhi/jre/bin/../bin/sparc/native_threads/vhi-webstation -native -Djava.libr |
| |
vhiuser |
437 |
1 |
... |
/etc/vhi/bin/atstart -start HostEmul |
| |
vhiuser |
438 |
437 |
... |
/etc/vhi/jre/bin/../bin/sparc/native_threads/vhi-hostemul -native -Djava.librar |
| |
vhiuser |
1970 |
1968 |
... |
grep vhi |
#!/bin/sh #This script, run by root, starts Verastream as user vhiuser. su vhiuser -c "/etc/init.d/vhi $1" |
Then, use the chmod command to make the script executable for all.
chmod 711 /etc/init.d/vhinonrootrm /etc/rc3.d/S99vhiln -s /etc/init.d/vhinonroot /etc/rc3.d/S99vhiWhen the host system is shutdown and restarted, the Verastream processes should be successfully started under the non-root account. To verify that Verastream is running, use the /etc/vhi/bin/atstart -status command. If it is not running, examine the /var/adm/messages file for errors.