- with the classic unix command "su <user_name>" you become the new user, however if you want to take the environment of the user the command is "su - <user_name>" with dash+blank (see manual pages su)
- It seems you didn't know the mechanism Informix find itselfs :
1. The INFORMIXDIR variable points to the informix directory that contains bin, etc, ...
2. The PATH variable includes $INFORMIXDIR/bin
3. The ONCONFIG variable points to the onconfig file in $INFORMIXDIR/etc
4. The INFORMIXSERVER variable is the name of the informix instance which you want to 'init' or 'connect', this name is the same name you must have in the onconfig file in variable DBSERVERNAME or DBSERVERALIASES, the same name is in the sqlhosts file
5. The $INFORMIXDIR/etc/sqlhosts or alternatively the INFORMIXSQLHOSTS variable is the connectivity file. It describes the mapping between $INFORMIXSERVER, the hostname (could be remotely), the connect method (socket, ipc, shm) and the appropriate port number/name if socket (soctcp).
6. The unix file /etc/services maps the port name to the port number.
the port number informix uses :
So on 1 machine you can have f.i. 1 /usr/informix directory with 1 sqlhosts file and multiple INFORMIXSERVER instances.
OLd but very easy admin explanation at
http://docs.rinet****:8083/InforSmes/index.htm
The whole stuff at
http://www-306.ibm.com/software/data.../pubs/library/
Good luck,