Re: Can oninit be run from a shell?
Posted in 1997
But this will only work on the Unix OS's that support the sticky bit
on shell scripts. As I understand it not that many does as it's
considdered dangerous. You might be able to solve this by writing a
C-program that executes the oninit command and set the sticky bit as
described on this program.
Why you would want a "normal" user to be able to run oninit is another
issue. I don't quite see why it should be necessary.
"Val'ry" <valou@hotmail.com> wrote:
: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...)
:Cheers.
:
:--
:Valery Fouques valou@hotmail.com
:SYSADM GOSPORT-FRANCE /\\oO/\\
:
: _ __/|
: \\`O.o' "355/113 -- Not the famous irrational
: =(_ _)= number PI, but an incredible simulation!"
: U
:
:
: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.
:>
:> Yours,
:> Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
:>
:> }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"
:>
Nils.Myklebust@idg.no
NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway
My opinions are those of my company
The Informix FAQ is at http://www.iiug.org