![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using 'su'
I host out of an Oracle Web application to the Unix command line. By default I am a user named 'ora9i'. I would like to call a script that logs me in as another user...I will know the username and password, run their .profile to access a couple of common environment variables, and then execute a command using the values of these variables. Is this possible within a single script? Is it possible at all?
I would like to:
Any suggestions would be very helpful. Thanks. |
|
||||
|
Re: Using 'su' - What about the password prompt
Thanks, but what about the password? Won't this interactively prompt for a password? Is there a way to also pass in the password so that the command can be used in a script?
Thanks in advance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|