Re: shared library path problem

From: Mike Stroyan (stroyan_at_hpstryn.fc.hp.com)
Date: 04/28/04


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


Relevant Pages

  • Re: Annoying simple UID problem
    ... >>How is the UID obtained for a command? ... > getuid and setuid get and set the real user ID ... > geteuid and seteuid do the same for the effective user ID ... Tracing yields a setuid() only, ...
    (comp.unix.solaris)
  • Re: change password
    ... > everything was going fine until I set the script to setuid root. ... I assume you're not literally trying to set the setuid bit on a script - ... the program with setuid(set real user ID). ...
    (comp.os.linux.security)
  • user ids
    ... can somebody explain to me the difference between real user id's and ...
    (comp.os.linux)