Hi ,
I would like to know, whether if it is possible or not.
I am runing one tuxedo command script. This script should run on another userID and stored the data on another UserID.
For Example:
UserA : The Script is available in this userID location. .
If i run that script then it should go to UserB environment and run there. And return the value to UserA.
Please advice on this.
Thanks & Regards,
Mani
You can use, logged as userA:
su - userB -c <script>
# Also, you can use sudo. Check its man pages!
I hope it helps!
Yeah , its working fine. if you know the UserB password.
I dont know that userB password . And also i am using that command in shell scripting.
Please advice on this ..
Thanks,
Mani
So, if you don't know userB's password, how you want to execute a script/command as it? You can setup "sudo", but you will need root's password for it!
Check this link:
-----> Quick HOWTO : Ch09 : Linux Users and Sudo - Linux Home Networking
I hope it helps.