![]() |
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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running script from other user rather than login user | rawatds | Shell Programming and Scripting | 3 | 01-30-2009 01:18 PM |
| How do i change to super user then revert back to ordinary user ,using shell script? | wrapster | Shell Programming and Scripting | 3 | 06-04-2008 08:11 AM |
| Have script run as a different user | mikey20 | Shell Programming and Scripting | 1 | 11-04-2005 02:12 PM |
| log out user in script | whatisthis | Shell Programming and Scripting | 6 | 04-25-2005 02:26 PM |
| another user script | omran | UNIX for Advanced & Expert Users | 7 | 10-05-2002 11:24 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Run the script from another user
Hello Experts
I want to run script from another user in unix . Also the script has been calling from SQL. HOST command helps to call the unix file from sql . But my problem is the unix script has to be run by another user. I tried tht following $ sudo su - user2 -c who ==> it is asking password , but I couldn't able to connect though I typed correct pwd. Even I tried $ /usr/local/bin/sudo -u user2 who --> it is asking password. I couldn't able to connect though I typed correct password. Please suggest me how to run the script from another user without asking the password ( As I am planning for automation ) Thanks Krishna |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|