Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: su in a script
"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