title: Switch user without prompting for a password in shell script
body: <p>I need to switch between two users using a shell script. </p>
  
  <p>I used su and sudo for switching between users. The bottom line is that, it's prompting for user password every time, and I do not want that to happen. </p>
  
  <p>I know the password; is there a way I can hard code it in the script itself, so that it will not prompt the user for a password?</p>