Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: su in a script

Re: su in a script

From: Niall Litchfield <Niall.Litchfield_at_btinternet.com>
Date: Thu, 20 Sep 2001 18:07:22 +0100
Message-ID: <9od7bf$8vu$1@uranium.btinternet.com>


Try a Unix group. su - username really doesn't work very well on my NT box.

comp.unix.shell looks a likely candidate to me. comp.unix.something or other certainly

Niall Litchfield
Oracle DBA
Audit Commission UK
On holiday and wondering what he is doing reading this. "ak" <a.kadivar_at_caramail.com> wrote in message news:9oc6is$1cnu$1_at_norfair.nerim.net...
> Would yuo be so kind to indicate me the right group please ?
> Robert Fazio <dbabob_at_yahoo.nospam.com> a écrit dans le message :
> Xns9121E7E146B45dbabobyahoocom_at_24.12.106.199...
> > "ak" <a.kadivar_at_caramail.com> wrote in
> > news:9oaef9$8p9$1_at_norfair.nerim.net:
> >
> > > Hello
> > > Is it possible to use su command in a Shell script in order to change
> > > user
> > > ? If yes how give it the password without typing it on the keyboard?
> > > Thanks a lot.
> > >
> > >
> >
> > You are really in the wrong group, but the answer is yes and no. You
can
> > use su in a script. But only if the user executing the script is root.
> >
> > su - username -c "some command" is a common syntax, but the only user
that
> > can do this without a password is root.
> >
> > --
> > Robert Fazio
> > Senior Technical Advisor
> > dbabob_at_yahoo.com

>
> Received on Thu Sep 20 2001 - 12:07:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US