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: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 19 Sep 2001 18:06:15 +0200
Message-ID: <tqhgv6lo9vqf46@news.demon.nl>

"ak" <a.kadivar_at_caramail.com> wrote in message 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.
>
>

1 ) a properly installed Unix comes with man pages. man su will give you the answer to your question
2 ) use su - <username> in a script, as documented by man.

Regards,

Sybrand Bakker, Senior Oracle DBA Received on Wed Sep 19 2001 - 11:06:15 CDT

Original text of this message

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