Re: shared library path problem
From: Mike Stroyan (stroyan_at_hpstryn.fc.hp.com)
Date: 04/28/04
- Next message: Prem K Mehrotra: "VPAR NEWBIE Question"
- Previous message: A380: "Re: HP-UX 9000 700i"
- In reply to: Prem K Mehrotra: "Re: shared library path problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 20:36:02 GMT
Prem K Mehrotra <premmehrotra@hotmail.com> wrote:
|Mike Stroyan <stroyan@hpstryn.fc.hp.com> wrote in message news:<PTzjc.506$ni2.148@news.cpqcorp.net>...
|> One way to get SHLIB_PATH to work would be to use a different
|> mechanism to set the uid before running the setuid executable. You
|> could su to the setuid account, set SHLIB_PATH, and then run svrmgrl.
|> You don't even need to remove the setuid/setgid bit from the file if you
|> run the program as the same user and group that it is setuid or setgid to.
|Are you saying that if I logon using su oracle (instaed of directly
|logging on as oracle), and then run svrmgrl (problem will
|go away.
The SHLIB_PATH is ignored if a process has a different effective user
id than real user id (or different effective group id and real group
id). If you run a setuid program with the real user id already matching
the owner of the file, then the setuid bit won't matter. The real and
effective ids will continue to match. The SHLIB_PATH will be used in
that case.
It should not matter whether you use login or su to get to the right
user id.
-- Mike Stroyan, mike.stroyan@hp.com
- Next message: Prem K Mehrotra: "VPAR NEWBIE Question"
- Previous message: A380: "Re: HP-UX 9000 700i"
- In reply to: Prem K Mehrotra: "Re: shared library path problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|