For Programmers: Free Programming Magazines  


Home > Archive > Cobol > October 2006 > SUID bit set on a COBOL executable uner a HP-UX like OS - disable library search path









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author SUID bit set on a COBOL executable uner a HP-UX like OS - disable library search path
robwlindsay@gmail.com

2006-10-05, 9:55 pm

Has anyone seen this before?

The scenario:
We are setting the SUID bit on an executable so it will run as the
owner. This works fine in our Tru64 Unix, COBOL 4.1.30 environment.

Under HP-UX 11.23i MicroFocus Server Express the executable cannot find
it's libraries as the library search paths defined in LD_LIBRARY_PATH
and SHLIBPATH are ignored. See the excerpt from HP-UX dlopen man page
below:

"WARNINGS
The environment variable LD_LIBRARY_PATH and SHLIB_PATH should
contain
a colon-separated list of directories, in the same format as the
PATH
variable (see sh(1)). LD_LIBRARY_PATH and SHLIB_PATH will be
ignored
if the process' real user id is different from its effective user
id
or its real group id is different from its effective group id
(see
exec(2))."

Does anyone have a workaround for this issue?

TIA

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com