HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setgid program using SHLIB_PATH on HPUX 11.22
Operating System - HP-UX
1833415
Members
3557
Online
110052
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
10-23-2002 01:11 PM
10-23-2002 01:11 PM
setgid program using SHLIB_PATH on HPUX 11.22
dld.so appears to not honor SHLIB_PATH when
a program is set[ug]id on HPUX 11.22. Im
guessing this is to close a hole where a
library could be inserted to get priv escalation. However I cannot find any way to
add libraries to the 'TCB' (ala ldconfig on
Solaris). How should a setgid program that
uses (and provides shared libraries) be linked
to work on 11.22?
a program is set[ug]id on HPUX 11.22. Im
guessing this is to close a hole where a
library could be inserted to get priv escalation. However I cannot find any way to
add libraries to the 'TCB' (ala ldconfig on
Solaris). How should a setgid program that
uses (and provides shared libraries) be linked
to work on 11.22?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2002 01:16 PM
10-23-2002 01:16 PM
Re: setgid program using SHLIB_PATH on HPUX 11.22
Stuart,
Add the path to your dld.so in /etc/profile on the system.
Also if you are using NIS and have a master user profile which propogates to the users, make sure that you add the path to it too.
For testing you may try this
export SHLIB_PATH=$$SHLIB_PATH:/test/test/dld.so
test is the path where dld.so lies.
Regards,
Anil
Add the path to your dld.so in /etc/profile on the system.
Also if you are using NIS and have a master user profile which propogates to the users, make sure that you add the path to it too.
For testing you may try this
export SHLIB_PATH=$$SHLIB_PATH:/test/test/dld.so
test is the path where dld.so lies.
Regards,
Anil
If you need to learn, now is the best opportunity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 04:56 AM
10-25-2002 04:56 AM
Re: setgid program using SHLIB_PATH on HPUX 11.22
I would suggest first running a 'chatr' on the program to ensure it is using the SHLIB_PATH. If it is not enabled, then you're missing a "+s" from your linker options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 05:09 AM
10-25-2002 05:09 AM
Re: setgid program using SHLIB_PATH on HPUX 11.22
The program works (as a non-root user) when
its permissions are 555, But when I change
the permissions to 2555 (setgid) it can no
longer locate the shared libraries that are
present in SHLIB_PATH. SHLIB_PATH is set in
the environment of the calling shell.
its permissions are 555, But when I change
the permissions to 2555 (setgid) it can no
longer locate the shared libraries that are
present in SHLIB_PATH. SHLIB_PATH is set in
the environment of the calling shell.
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