Re: Can oninit be run from a shell?
Posted in 1997
Val'ry <valou@hotmail.com> schrieb im Beitrag
<01bc4735$2531f100$250902c2@val-ry>...
> There is one solution for what you want:
> Change ouy shell's owner and group to informix:informix
> and issue a chmod +s on your shell (sticky bit).
> Then, anyone executing your shell will be given informix's identity (and
> will have the rights to execute oninit...)
Sorry, but this will not work on all UNIX platforms. Several UNIX's accept
the "setuid-bit" only for compiled executables, but not for shell scripts.
Peter Schneider, speeking for my own!
> Jonathan Leffler <johnl@informix.com> wrote in article
> <5ik3h3$did@cssun.mathcs.emory.edu>...
> > No, normally root or informix runs it; your system seems to have been
> > installed with role separation enabled so that it is the DBSA (database
> > administrator) who has to do it.
> >
> > }From: nws@stout.atd.ucar.edu (Eddie Roberts)
> > }Date: 10 Apr 1997 18:59:12 GMT
> > }X-Informix-List-Id: <news.36420>
> > }
> > }Is there anyway a "normal - non priveledged" user can run oninit from
> > }a shell script? [...]
> > }
> > }BUT, I get the following error message:
> > } "Must be a DBSA to run this program"