HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swinstall scripts run as setid on 11.22
Operating System - HP-UX
1833017
Members
2159
Online
110048
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 02:54 PM
11-19-2002 02:54 PM
swinstall scripts run as setid on 11.22
I have a product install that tries to execute
the product binaries as part of the postinstall scripts. The product binaries link with shared libraries provided by the product, so the binary relies on SHLIB_PATH to locate the binaries. However SHLIB_PATH is not honored when the script is executed by swagentd as part of the product install. The same script works fine from a root shell. THe same script also works fine from swagentd on 11.0 and 11.i. How does HPUX 11.22 dld.so determine when to honor SHLIB_PATH? Logging has shown that real UID == effective UID, so there must be some other way.
the product binaries as part of the postinstall scripts. The product binaries link with shared libraries provided by the product, so the binary relies on SHLIB_PATH to locate the binaries. However SHLIB_PATH is not honored when the script is executed by swagentd as part of the product install. The same script works fine from a root shell. THe same script also works fine from swagentd on 11.0 and 11.i. How does HPUX 11.22 dld.so determine when to honor SHLIB_PATH? Logging has shown that real UID == effective UID, so there must be some other way.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 03:19 PM
11-19-2002 03:19 PM
Re: swinstall scripts run as setid on 11.22
Hi Stuart,
I would normally do this sort of thing - firing up the newly installed SW - at the end of the configure script.
I've successfully done this in the past.
And I'd manually set the SHLIB_PATH in that configure script.
I think you're running into this problem because the SW isn't *actually* installed until it runs through the configure phase.
Rgds,
Jeff
I would normally do this sort of thing - firing up the newly installed SW - at the end of the configure script.
I've successfully done this in the past.
And I'd manually set the SHLIB_PATH in that configure script.
I think you're running into this problem because the SW isn't *actually* installed until it runs through the configure phase.
Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 03:42 PM
11-19-2002 03:42 PM
Re: swinstall scripts run as setid on 11.22
Jeff
I misspoke in my original post. The attempt
to use the command is at the tail of my
configure script. postinstall is already
completed. If I list my SHLIB_PATH directory
during my 'command script' all of the
libraries are installed and have the correct
permissions/mode.
This is also unique to 11.22. I have the
exact same scripts for the 11.0/11.i product
and they work as expected. This may be partly
due to the fact that 11.0/11.i does honor
SHLIB_PATH, even on setuid programs (unless
you have a security patch installed). Its
interesting that there is no equivalent of
ldconfig on HPUX; there is no way for me to
have dld.so 'find' my libraries, even if
I copy them to /usr/lib/hpux32.
thanks
stuart
I misspoke in my original post. The attempt
to use the command is at the tail of my
configure script. postinstall is already
completed. If I list my SHLIB_PATH directory
during my 'command script' all of the
libraries are installed and have the correct
permissions/mode.
This is also unique to 11.22. I have the
exact same scripts for the 11.0/11.i product
and they work as expected. This may be partly
due to the fact that 11.0/11.i does honor
SHLIB_PATH, even on setuid programs (unless
you have a security patch installed). Its
interesting that there is no equivalent of
ldconfig on HPUX; there is no way for me to
have dld.so 'find' my libraries, even if
I copy them to /usr/lib/hpux32.
thanks
stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 04:09 PM
11-19-2002 04:09 PM
Re: swinstall scripts run as setid on 11.22
OK, I see.
What I do if the newly installed SW is auto-started out of a /sbin/init.d script is to call that script to start it as I set all the env stuff in there.
Seems to work for me.
You may want to try to write a script that does this & call this script to start the SW instead of relying on the shell that swinstall uses or spawns.
Rgds,
Jeff
What I do if the newly installed SW is auto-started out of a /sbin/init.d script is to call that script to start it as I set all the env stuff in there.
Seems to work for me.
You may want to try to write a script that does this & call this script to start the SW instead of relying on the shell that swinstall uses or spawns.
Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP