Hi All,<br>i am not sure if this is the right mailing list for asking this question. I would appreciate any help on this.<br><br>I want to switch users using a shell script, i.e.<br>Say i am logged in as user1. I would like to say su - user2 in my script.
<br>
I would be performing some operations as user &quot;user2&quot; as part of the script after logging in as this user.<br>Finally i will be exiting back to user1 shell.<br><br>How will i login as user2 through shell script?
<br>How will i&nbsp; execute scripts as user2 after logging in from shell script? Even if i am able to login as user2<br>any commands after &quot;su - user2&quot; are not executed as user2. They are executed only as user1 when i exit the 
<br>user2 shell.<br>
<br clear="all">-- <br>Regards,<br>Rajiv