- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SUID SGID issue on execueting a exe
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО07-28-2008 12:18 PM
тАО07-28-2008 12:18 PM
The exe attributes are SHLIB_LIB lookup first and then embedded path.
When i execute the exe with 777 permission from a seperate login it finds all the linked libraries, while the same exe with SGID and SUID set, fails to find the libraries with SHLIB_PATH lookup enabled.
Below is a output of the behaviour explained above on HPUX 11iV2 Itanium Server.
hpitan4::/opt/plat1122/bin > ll fastunload*
-rwxrwxrwx 1 plat1122 dba 3551008 Dec 27 2007 fastunload*
-rwsr-sr-x 1 plat1122 dba 3551008 Jul 28 11:44 fastunload_test*
SHLIB_PATH is ENABLED BEFORE EMBEDDED PATH
chatr fastunload_test
fastunload_test:
64-bit ELF executable
shared library dynamic path search:
LD_LIBRARY_PATH enabled first
SHLIB_PATH enabled second
embedded path enabled third /home/CAI/manageit/support2/mgtdbt_dir/CSAPI/HPU112/toolkits/mitapi/r11.2.2/lib:/home/CAI
/manageit/support2/mgtdbt_dir/CSAPI/HPU112/toolkits/mitapi/r11.2.2/lib:/home/CAI/manageit/support2/mgtdbt_dir/CSAPI/HPU112/toolkits/dd_od
bc/v530/lib:/home/CAI/manageit/support2/mgtdbt_dir/CSAPI/HPU112/toolkits/rtworks/4.6.1/lib/ia64_hpux11:/usr/lib/hpux64:/opt/langtools/lib
/hpux64
Now when i run this exe from a different user other than its owner plat1122. I get error with the exe, which has SUID and SGID set and not from the same exe which has 777 permission.
hpitan4::/opt/plat1122/bin > ll fastunload_test
-rwsr-sr-x 1 plat1122 dba 3551008 Jul 28 11:44 fastunload_test*
hpitan4::/opt/plat1122/bin > ldd fastunload_test
Unable to find library 'libmitapi.so'.
WHILE On the EXE which has 777 permission i can execute it and it finds the dependant library.
hpitan4::/opt/plat1122/bin > ll fastunload
-rwxrwxrwx 1 plat1122 dba 3551008 Dec 27 2007 fastunload*
hpitan4::/opt/plat1122/bin > ldd fastunload | m
libmitapi.so => /opt/plat1122/UnicenterDCC/lib/libmitapi.so
Any idea why this behaviour is happening. On PA-RISC we had option to disable the embedded path but it is not available on Itanium Chatr options.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2008 02:06 PM
тАО07-28-2008 02:06 PM
Re: SUID SGID issue on execueting a exe
To get this to work you must put those paths in /etc/dld.sl.conf:
http://docs.hp.com/en/B2355-60127/dld.sl.5.html#d0e978509
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2008 11:38 AM
тАО07-29-2008 11:38 AM
Re: SUID SGID issue on execueting a exe
http://forums.itrc.hp.com/service/forums/helptips.do?#33
http://forums.itrc.hp.com/service/forums/helptips.do?#41
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2008 11:48 AM
тАО07-29-2008 11:48 AM
Re: SUID SGID issue on execueting a exe
Thanks again,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2008 05:27 PM
тАО07-29-2008 05:27 PM
Re: SUID SGID issue on execueting a exe
You need to push the submit points button before the points are assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 06:48 AM
тАО07-30-2008 06:48 AM
Re: SUID SGID issue on execueting a exe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 05:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 12:12 PM
тАО07-31-2008 12:12 PM
Re: SUID SGID issue on execueting a exe
Sorry for the trouble, as this was my first post in the forum