Re: Execute svrmgrl with the right user (Userid bit ?)

From: MS <qcom_at_attbi.com>
Date: 12 Mar 2002 10:53:27 -0800
Message-ID: <a2b6d46b.0203121053.5eba5e7b_at_posting.google.com>


AFAIK setuserid bit's don't work with shell scripts - it would make it insecure. Since the script runs as a root user you could: su <userid> -c "yourscript"
(make sure the environment is set in yourscript). or
su - <userid> -c "yourscript"

hope it helps.

-MS
"Geoffrey" <g.dufour_at_swing.be> wrote in message news:<3c8e1533$0$263$ba620e4c_at_news.skynet.be>...
> Hi,
>
> OS : Solaris 8
> ORACLE : 8.0.5
>
> I need to run a KSH script with the root user.
>
> After a few commands, the script is supposed to execute a new KSH script
> that runs a few "svrmgrl command=_at_mysqlscript".
>
> To work properly my svrmgrl has to be run with a specific user (not root).
>
> How can I handle this ?
>
> I tried to define my specific user as owner of the 2nd script and to enable
> userid bit, but it does not work for the svrmgrl command.
>
> As you can see, I'm not a UNIX specialist.
>
> Can you help me ?
>
> Regards.
Received on Tue Mar 12 2002 - 19:53:27 CET

Original text of this message