1833815 Members
2480 Online
110063 Solutions
New Discussion

shlib_path

 
joe_91
Super Advisor

shlib_path

i have granted sudo access to my SAP guys and they say setting the env like this (export SHLIB_PATH=/install/dir/path/) and they it does not work. how do i set this env for them? or is there any other way to get this working?

Thanks

Joe
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: shlib_path

Shalom,

They don't need sudo access to set environment variables if they have commandline/script access.

They should be able to modify their .profile files. Two things they need to make that work. Permission to edit their .profile files and read access to whatever directories they want in their SHLIB_PATH

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
siva0123
Trusted Contributor

Re: shlib_path

Joe,

Jst ask them to edit their .profile file in their home directory.

$vi .profile
and add this line,
export SHLIB_PATH=/install/dir/path/
somwhere in the file.

But for this change to take effect i think they have to log out and login again after changing .profile.


Thanks,
siva

Peter Nikitka
Honored Contributor

Re: shlib_path

Hi,

for system wide setting of SHLIB_PATH and friends, I use the same method as HP-UX handles PATH and MANPATH:

- create a file /etc/SHLIB_PATH with the desired content
- process its content in /etc/profile or /etc/profile.local or ... the same way as MANPATH .

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Dennis Handly
Acclaimed Contributor

Re: shlib_path

>they say setting the env like this (export SHLIB_PATH=/install/dir/path/) and they it does not work.

There have been several security fixes to dld that would prevent honoring of SHLIB_PATH for setuid programs. Could that be your issue?

See PHSS_34858 and /etc/dld.sl.conf.

>Sivagnanaselvan: But for this change to take effect i think they have to log out and login again after changing .profile.

They can either resource it (. .profile) or export SHLIB_PATH.
Yogeeraj_1
Honored Contributor

Re: shlib_path

hi Joe,

As mentioned above, you need to either set the environment variable in the .profile of the user or do an explicit export SHLIB_PATH...

If you are using scripts, it will be better to include that export line in the script itself.

in any case, if you do echo $SHLIB_PATH , the current setting for that environment variable will be displayed.


hope this helps!
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)