Re: setuid and secondary group on HPUX

From: Ian P. Springer (ian.springer_at_hp.com)
Date: 05/20/04


Date: Thu, 20 May 2004 16:16:10 GMT


| >
| > You don't show how you run the script. Many shell implementations
check
| > whether the effective uid is different from the real uid, and revert
| > back to the real uid. There may be a shell command-line option that
| > disables this (it's -p for Bourne shell and similar shells).
|
| I just do execvp to exec the scripts. I tried to call getgroups and
print
| out the result after setuid, and it only show the primary group in HPUX.
But
| in AIX and Solaris, it shows all the groups and the program works.
Anyone
| have any idea how to make it work in HPUX? What is the su do beside
| initgroups, setuid etc in HP?

You could try using tusc to determine what system calls su is making.

Ian



Relevant Pages

  • Re: setuid and secondary group on HPUX
    ... |> You don't show how you run the script. ... Many shell implementations ... |> back to the real uid. ... | out the result after setuid, and it only show the primary group in HPUX. ...
    (comp.unix.programmer)
  • Re: setuid and secondary group on HPUX
    ... > You don't show how you run the script. ... Many shell implementations check ... > whether the effective uid is different from the real uid, ... and it only show the primary group in HPUX. ...
    (comp.sys.hp.hpux)
  • Re: setuid and secondary group on HPUX
    ... > You don't show how you run the script. ... Many shell implementations check ... > whether the effective uid is different from the real uid, ... and it only show the primary group in HPUX. ...
    (comp.unix.programmer)