title: Using su in Shell script
body: <p>I am writing a shell script where in a condition the script will change the user like su - xxx and then it has to execute some commands/scripts and should stay login to that user/session for user interaction. Once user enter exit it should exit from that session and should return to script.</p>
  
  <p>I have tried using su - xxx -c "commands" but it terminates the session after executing the commands. I want to stay on that session after execution of the commands, user should exit manually (type exit) to close that session and return to script.</p>
  
  <p>Any hint will do..</p>
  
  <p>Thanks in advance....for you suggestion..</p>