title: How can I switch the current user from within a shell script?
body: <p>I have to write a shell script to run some commands on unix. I have to switch several users.
  How can I give passwords inside my script?</p>
  
  <p>Note: I am not a root user. Also, security is not an issue in this case, so I could write passwords in my script.</p>