krpath

General Form:

krpath [-s newpath] filename


The krpath utility is used to define a run-time search path to locate shared libraries for executables that have the setuid bit set in their file permissions. This is required as setuid executables ignore the $LD_LIBRARY_PATH/$LIBPATH environment variables. The krpath utility stores the search path by setting the RPATH attribute in the executable's header, the maximum length of the path is 256 bytes.

This is supported in KCML 7.05 (or later) & KCML 6.20, from build 20106 onwards, for AIX 5.3 & Linux 2.6 only

The current value of the search path can be displayed by running krpath on an executable:

$ krpath kcml
/lib:/usr/lib:/usr/local/lib

Any user can display the search path.

To reset the search path, use the -s newpath option, the user will require write access to the file. For example, assuming KCML has been installed into /usr/local/kcml

$ krpath -s /lib:/usr/lib:/usr/local/lib:/usr/local/kcml kcml

Then verify the search path has the correct value

$ krpath kcml
/lib:/usr/lib:/usr/local/lib:/usr/local/kcml

Functionality that requires the KCML directory in the library search path includes

Systems that use an Oracle database will also require the Oracle library directory adding to the search path. For example, if the Oracle client has been installed into /opt/oracle/11.1

$ krpath -s /lib:/usr/lib:/usr/local/lib:/usr/local/kcml:/opt/oracle/11.1/lib kcml

... and verify

$ krpath kcml
/lib:/usr/lib:/usr/local/lib:/usr/local/kcml:/opt/oracle/11.1/lib