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

From: Geoffrey <g.dufour_at_swing.be>
Date: Wed, 13 Mar 2002 14:32:45 +0100
Message-ID: <3c8f54fd$0$264$ba620e4c_at_news.skynet.be>


Thanks for your help.
It seems to be safer than dealing with the user id bit.

Btw, the "user id bit" way works on my Solaris 8 but not on my Red Hat Linux.

Do you know the reason ?

Just to know.

"MS" <qcom_at_attbi.com> a écrit dans le message de news: 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 Wed Mar 13 2002 - 14:32:45 CET

Original text of this message